[ruby-cvs:68058] yui-knk:r60877 (trunk): parse.y: Fix the locations of NODE_BLOCK_PASS
yui-knk at ruby-lang.org
yui-knk at ruby-lang.org
Wed Nov 22 21:32:41 JST 2017
yui-knk 2017-11-22 21:32:41 +0900 (Wed, 22 Nov 2017)
New Revision: 60877
https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60877
Log:
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)
```
Modified files:
trunk/parse.y
More information about the ruby-cvs
mailing list