[ruby-cvs:68309] yui-knk:r61128 (trunk): parse.y: Fix locations of NODE_ARRAY of opt_call_args

yui-knk at ruby-lang.org yui-knk at ruby-lang.org
Tue Dec 12 09:12:43 JST 2017


yui-knk	2017-12-12 09:12:43 +0900 (Tue, 12 Dec 2017)

  New Revision: 61128

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

  Log:
    parse.y: Fix locations of NODE_ARRAY of opt_call_args
    
    * parse.y: Fix to only include a range of assocs
      (exclude ',' form range).
    
      e.g. The locations of the NODE_ARRAY is fixed:
    
      ```
      m1(str: "bar",)
      ```
    
      * Before
    
      ```
      NODE_ARRAY (line: 1, code_range: (1,3)-(1,14))
      ```
    
      * After
    
      ```
      NODE_ARRAY (line: 1, code_range: (1,3)-(1,13))
      ```

  Modified files:
    trunk/parse.y


More information about the ruby-cvs mailing list