Wrong position information for a CallNode with parentheses
----------------------------------------------------------

                 Key: JRUBY-1443
                 URL: http://jira.codehaus.org/browse/JRUBY-1443
             Project: JRuby
          Issue Type: Bug
          Components: Parser
    Affects Versions: JRuby 1.0.1
         Environment: OSX
            Reporter: Tor Norbye


Given this document:
(x) >> 10

you get a CallNode for this (>>), but the CallNode has invalid offsets. It gets 
range (1,9) but it should be (0,9). In other words, it doesn't include the left 
side parenthesis.

This was boiled down from a more complicated example where it gets more severe:
(((streamsize/frames)*samplerate)/144) >> 10

Here the outer callnode starts at offset 3 rather than 0.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to