зеркало из https://github.com/github/ruby.git
No need to specify tags anymore
In the past, these codes were used by both parser and ripper. On ripper, the type of LHS is `<val>` then type cast was needed. However currently these are only used by parser then no need to cast.
This commit is contained in:
Родитель
cce7c25a42
Коммит
55c62e676f
10
parse.y
10
parse.y
|
@ -3613,14 +3613,14 @@ command : fcall command_args %prec tLOWEST
|
|||
{
|
||||
NODE *args = 0;
|
||||
args = ret_args(p, $2);
|
||||
$<node>$ = add_block_exit(p, NEW_BREAK(args, &@$));
|
||||
$$ = add_block_exit(p, NEW_BREAK(args, &@$));
|
||||
/*% ripper: break!($:2) %*/
|
||||
}
|
||||
| keyword_next call_args
|
||||
{
|
||||
NODE *args = 0;
|
||||
args = ret_args(p, $2);
|
||||
$<node>$ = add_block_exit(p, NEW_NEXT(args, &@$));
|
||||
$$ = add_block_exit(p, NEW_NEXT(args, &@$));
|
||||
/*% ripper: next!($:2) %*/
|
||||
}
|
||||
;
|
||||
|
@ -4790,17 +4790,17 @@ primary : literal
|
|||
}
|
||||
| keyword_break
|
||||
{
|
||||
$<node>$ = add_block_exit(p, NEW_BREAK(0, &@$));
|
||||
$$ = add_block_exit(p, NEW_BREAK(0, &@$));
|
||||
/*% ripper: break!(args_new!) %*/
|
||||
}
|
||||
| keyword_next
|
||||
{
|
||||
$<node>$ = add_block_exit(p, NEW_NEXT(0, &@$));
|
||||
$$ = add_block_exit(p, NEW_NEXT(0, &@$));
|
||||
/*% ripper: next!(args_new!) %*/
|
||||
}
|
||||
| keyword_redo
|
||||
{
|
||||
$<node>$ = add_block_exit(p, NEW_REDO(&@$));
|
||||
$$ = add_block_exit(p, NEW_REDO(&@$));
|
||||
/*% ripper: redo! %*/
|
||||
}
|
||||
| keyword_retry
|
||||
|
|
Загрузка…
Ссылка в новой задаче