[ruby-cvs:68305] yui-knk:r61124 (trunk): parse.y: Change locations of NODE_DVAR in NODE_MASGN

yui-knk at ruby-lang.org yui-knk at ruby-lang.org
Tue Dec 12 08:13:47 JST 2017


yui-knk	2017-12-12 08:13:47 +0900 (Tue, 12 Dec 2017)

  New Revision: 61124

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

  Log:
    parse.y: Change locations of NODE_DVAR in NODE_MASGN
    
    * parse.y: Change the last location of NODE_DVAR to
      be equal to the first location of NODE_DVAR.
      NODE_DVAR of NODE_MASGN (nd_value) is an internal variable,
      so it has no length.
    
      e.g. The locations of the NODE_DVAR is changed:
    
      ```
      a.b {|(c,d)| e}
      ```
    
      * Before
    
      ```
      NODE_DVAR (line: 1, code_range: (1,7)-(1,10))
      ```
    
      * After
    
      ```
      NODE_DVAR (line: 1, code_range: (1,7)-(1,7))
      ```

  Modified files:
    trunk/parse.y


More information about the ruby-cvs mailing list