ruby-changes:48870
From: nobu <ko1@a...>
Date: Sun, 3 Dec 2017 15:15:04 +0900 (JST)
Subject: [ruby-changes:48870] nobu:r60988 (trunk): parse.y: location of BEGIN
nobu 2017-12-03 15:14:58 +0900 (Sun, 03 Dec 2017) New Revision: 60988 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60988 Log: parse.y: location of BEGIN * parse.y (top_stmt): wrap BEGIN statement to store the whole location for each block. Modified files: trunk/parse.y Index: parse.y =================================================================== --- parse.y (revision 60987) +++ parse.y (revision 60988) @@ -1234,7 +1234,7 @@ top_stmt : stmt https://github.com/ruby/ruby/blob/trunk/parse.y#L1234 { /*%%%*/ ruby_eval_tree_begin = block_append(ruby_eval_tree_begin, - $4, &@$); + new_begin($4, &@$), &@$); /* NEW_PREEXE($4)); */ /* local_pop(); */ $$ = new_begin(0, &@$); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/