Method: Parser::Source::Comment.associate_locations
- Defined in:
- lib/parser/source/comment.rb
.associate_locations(ast, comments) ⇒ Hash<Parser::Source::Map, Array<Comment>>
Associate comments with ast nodes by their location in the
source.
46 47 48 49 |
# File 'lib/parser/source/comment.rb', line 46 def self.associate_locations(ast, comments) associator = Associator.new(ast, comments) associator.associate_locations end |