diff options
author | yui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-12 14:21:20 +0000 |
---|---|---|
committer | yui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-12 14:21:20 +0000 |
commit | 3d6d61517593305fc4cd904b0050dba7c1f1f340 (patch) | |
tree | 0327896f6a980efe7eb92d8f00f756c4805168bb /parse.y | |
parent | 774f650bbe02a8e3053490a0e9e56901da732d6d (diff) | |
download | ruby-3d6d61517593305fc4cd904b0050dba7c1f1f340.tar.gz |
parse.y: Set locations of nd_body in NODE_ITER explicitly
* parse.y: Same as r61168, but for brace_block.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1645,6 +1645,8 @@ cmd_brace_block : tLBRACE_ARG { $$ = $3; /*%%%*/ + $3->nd_body->nd_loc.first_loc = @1.first_loc; + $3->nd_body->nd_loc.last_loc = @4.last_loc; nd_set_line($$, $<num>2); /*% %*/ } @@ -3805,6 +3807,8 @@ brace_block : '{' { $$ = $3; /*%%%*/ + $3->nd_body->nd_loc.first_loc = @1.first_loc; + $3->nd_body->nd_loc.last_loc = @4.last_loc; nd_set_line($$, $<num>2); /*% %*/ } |