Project

General

Profile

« Previous | Next » 

Revision 2d719aef

Added by yui-knk (Kaneko Yuichiro) almost 8 years ago

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)) 

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e