Project

General

Profile

« Previous | Next » 

Revision fef98fdd

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

parse.y: Fix locations of NODEs generated by cond0

  • parse.y: Fix to only include a range of the first argument of cond.

    e.g. The locations of the NODE_MATCH2 and NODE_GVAR are fixed:

    1 while /#{:a}/ 
    • Before
    NODE_MATCH2 (line: 1, first_lineno: 1, first_column: 0, last_lineno: 1, last_column: 15) NODE_GVAR (line: 1, first_lineno: 1, first_column: 0, last_lineno: 1, last_column: 15) 
    • After
    NODE_MATCH2 (line: 1, first_lineno: 1, first_column: 8, last_lineno: 1, last_column: 15) NODE_GVAR (line: 1, first_lineno: 1, first_column: 8, last_lineno: 1, last_column: 15) 

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