Project

General

Profile

« Previous | Next » 

Revision fa326994

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

Update the last location of NODE_BLOCK

  • parse.y (block_append_gen): Update the last
    location of NODE_BLOCK when a tail is appended.

    e.g. The locations of NODE_BLOCK is fixed:

    a; b; c
    
    • Before
    NODE_BLOCK (line: 1, first_lineno: 1, first_column: 0, last_lineno: 1, last_column: 4)
    
    • After
    NODE_BLOCK (line: 1, first_lineno: 1, first_column: 0, last_lineno: 1, last_column: 7)
    

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