Project

General

Profile

« Previous | Next » 

Revision 28d00c2f

Added by yui-knk (Kaneko Yuichiro) over 7 years ago

Update the last location of NODE_ARRAY

  • parse.y (list_append_gen, list_concat): Update
    the last location of NODE_ARRAY when an item is
    appended or concatenated with another NODE_ARRAY.

    e.g. The locations of NODE_ARRAY is fixed:

    a(1,2,3)
    
    • Before
    NODE_ARRAY (line: 1, first_lineno: 1, first_column: 2, last_lineno: 1, last_column: 3)
    
    • After
    NODE_ARRAY (line: 1, first_lineno: 1, first_column: 2, last_lineno: 1, last_column: 7)
    

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