[ruby-cvs:68271] yui-knk:r61090 (trunk): parse.y: Fix locations of NODE_ARRAY in NODE_OPCALL(nd_args)

yui-knk at ruby-lang.org yui-knk at ruby-lang.org
Sat Dec 9 12:18:55 JST 2017


yui-knk	2017-12-09 12:18:55 +0900 (Sat, 09 Dec 2017)

  New Revision: 61090

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61090

  Log:
    parse.y: Fix locations of NODE_ARRAY in NODE_OPCALL(nd_args)
    
    * parse.y: Fix to only include a range of arg1.
    
      e.g. The locations of the NODE_ARRAY is fixed:
    
      ```
      1 + 2
      ```
    
      * Before
    
      ```
      NODE_ARRAY (line: 1, code_range: (1,0)-(1,5))
      ```
    
      * After
    
      ```
      NODE_ARRAY (line: 1, code_range: (1,4)-(1,5))
      ```

  Modified files:
    trunk/parse.y


More information about the ruby-cvs mailing list