Closed mvz closed 5 years ago
Together with #288, supersedes #289.
>> ENV['VERBOSE'] = 'true' #=> "true" >> RubyParser.for_current_ruby.parse("a, b = c\nd") # => s(:block, # s(:masgn, # s(:array, s(:lasgn, :a).line(1), s(:lasgn, :b).line(1)).line(1), # s(:to_ary, s(:call, nil, :c).line(1)).line(2)).line(1), # s(:call, nil, :d).line(2)).line(1)
Here, s(:to_ary, s(:call, nil, :c)) has line number 2, but it should be 1. This is fixed in two places due to different target Ruby versions.
s(:to_ary, s(:call, nil, :c))
Merged in e145a7e7380a4a7f75d597120dacaa7f634a91b4, closing.
I was just checking on this. This has been fixed by the previous big line numbering commit.
Together with #288, supersedes #289.
Here,
s(:to_ary, s(:call, nil, :c))
has line number 2, but it should be 1. This is fixed in two places due to different target Ruby versions.