[ruby-cvs:68010] yui-knk:r60829 (trunk): Update the last location of NODE_ARRAY
yui-knk at ruby-lang.org
yui-knk at ruby-lang.org
Sat Nov 18 10:40:14 JST 2017
yui-knk 2017-11-18 10:40:13 +0900 (Sat, 18 Nov 2017)
New Revision: 60829
https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60829
Log:
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)
```
Modified files:
trunk/parse.y
More information about the ruby-cvs
mailing list