Method: Parser::Source::Comment.associate
- Defined in:
- lib/parser/source/comment.rb
.associate(ast, comments) ⇒ Hash<Parser::AST::Node, Array<Comment>>
Deprecated.
Use associate_locations.
Associate comments
with ast
nodes by their corresponding node.
32 33 34 35 |
# File 'lib/parser/source/comment.rb', line 32 def self.associate(ast, comments) associator = Associator.new(ast, comments) associator.associate end |