Extracts comments from Elixir source while preserving source positions.
Summary
Functions
Returns comments associated with a source range.
Functions
@spec associated(String.t(), Sourceror.Range.t(), atom()) :: [ExAST.Comment.t()]
Returns comments associated with a source range.
Relations are :comment, :before, :after, :inside, and :inline.
:comment includes before, inside, and inline comments.
@spec extract(String.t()) :: [ExAST.Comment.t()]