1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

parse.y: location of BEGIN

* parse.y (top_stmt): wrap BEGIN statement to store the whole
  location for each block.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2017-12-03 06:14:58 +00:00
parent 6d82373edc
commit 61997a2168

View file

@ -1234,7 +1234,7 @@ top_stmt : stmt
{ {
/*%%%*/ /*%%%*/
ruby_eval_tree_begin = block_append(ruby_eval_tree_begin, ruby_eval_tree_begin = block_append(ruby_eval_tree_begin,
$4, &@$); new_begin($4, &@$), &@$);
/* NEW_PREEXE($4)); */ /* NEW_PREEXE($4)); */
/* local_pop(); */ /* local_pop(); */
$$ = new_begin(0, &@$); $$ = new_begin(0, &@$);