зеркало из https://github.com/github/ruby.git
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
This commit is contained in:
Родитель
774f650bbe
Коммит
3d6d615175
4
parse.y
4
parse.y
|
@ -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);
|
||||
/*% %*/
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче