jruby / jruby-parser

JRuby's parser customized for IDE usage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

2.0 parser doesn't give call with block nodes the entire source position

chrisseaton opened this issue · comments

Referring to https://github.com/jruby/jruby-parser/blob/master/spec/positions/call_spec.rb#L100.

1.8 and 1.9 report the source position of these nodes as including the block, while 2.0 seems to report them as excluding the block. To see what I mean, change https://github.com/jruby/jruby-parser/blob/master/spec/positions/call_spec.rb#L4 to include 2.0 and you will see the relevant failures.

I can't immediately see what is causing this - they seem to use the same union method on the same nodes to get it.