[ruby-cvs:68189] yui-knk:r61008 (trunk): parse.y: Fix a location of NODE_ARRAY in NODE_ARGSCAT

yui-knk at ruby-lang.org yui-knk at ruby-lang.org
Mon Dec 4 16:16:31 JST 2017


yui-knk	2017-12-04 16:16:31 +0900 (Mon, 04 Dec 2017)

  New Revision: 61008

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

  Log:
    parse.y: Fix a location of NODE_ARRAY in NODE_ARGSCAT
    
    * parse.y: Fix the first location to be equal to the location
      of the first element of NODE_ARRAY.
    
      e.g. The locations of the NODE_ARRAY is fixed:
    
      ```
      m(*a, :b, :c)
      ```
    
      * Before
    
      ```
      NODE_ARRAY (line: 1, first_lineno: 1, first_column: 2, last_lineno: 1, last_column: 12)
      ```
    
      * After
    
      ```
      NODE_ARRAY (line: 1, first_lineno: 1, first_column: 6, last_lineno: 1, last_column: 12)
      ```

  Modified files:
    trunk/parse.y


More information about the ruby-cvs mailing list