ruby_parser is a ruby parser written in pure ruby. It outputs s-expressions which can be manipulated and converted back to ruby via the ruby2ruby gem.
476
stars
100
forks
source link
Fix line numbering for method arguments without parentheses #297
Closed
mvz closed 5 years ago
The line number for method arguments without parentheses is currently one more than it should be:
The line number for
s(:args, :a)
should be 1 in both cases.This change fixes that problem.