Project

General

Profile

« Previous | Next » 

Revision b5ee3168

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

parse.y: Fix the locations of NODE_BLOCK_PASS

  • parse.y (arg_blk_pass): Update the first location of
    NODE_BLOCK_PASS if nd_head is assigned.

e.g. The locations of NODE_BLOCK_PASS is fixed:

a(1, &:to_s)
  • Before
NODE_BLOCK_PASS (line: 1, first_lineno: 1, first_column: 5, last_lineno: 1, last_column: 11)
  • After
NODE_BLOCK_PASS (line: 1, first_lineno: 1, first_column: 2, last_lineno: 1, last_column: 11)

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