[ruby-cvs:68017] yui-knk:r60836 (trunk): parse.y: Fix the locations of NODE_DVAR and NODE_LVAR

yui-knk at ruby-lang.org yui-knk at ruby-lang.org
Sat Nov 18 17:21:46 JST 2017


yui-knk	2017-11-18 17:21:46 +0900 (Sat, 18 Nov 2017)

  New Revision: 60836

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

  Log:
    parse.y: Fix the locations of NODE_DVAR and NODE_LVAR
    
      * parse.y: Fix the locations of NODE_DVAR and NODE_LVAR
        when it's a multiple assignment method parameter.
    
      e.g. The locations of NODE_DVAR is fixed:
    
      ```
      a {|(b, c)| d}
      ```
    
      * Before
    
      ```
      NODE_DVAR (line: 1, first_lineno: 1, first_column: 4, last_lineno: 1, last_column: 10)
      ```
    
      * After
    
      ```
      NODE_DVAR (line: 1, first_lineno: 1, first_column: 5, last_lineno: 1, last_column: 9)
      ```

  Modified files:
    trunk/parse.y


More information about the ruby-cvs mailing list