gazayas / masamune-ast

A covenience wrapper around Prism, a Ruby source code parser
MIT License
13 stars 1 forks source link

Split line number and position on line for node search results #48

Closed gazayas closed 1 year ago

gazayas commented 1 year ago
Masamune::AbstractSyntaxTree.new("# foo").comments
 [{:position=>[1, 0], :token=>"# foo"}]

I'd like to return the following instead because it's appearing to be not so comment to use the second value in position

[{:line_number=>1, :position_on_line=>0, :token=>"# foo"}]