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:
yui-knk 2024-05-15 09:32:36 +09:00 committed by Nobuyoshi Nakada
parent cce7c25a42
commit 55c62e676f

10
parse.y
View File

@ -3613,14 +3613,14 @@ command : fcall command_args %prec tLOWEST
{ {
NODE *args = 0; NODE *args = 0;
args = ret_args(p, $2); args = ret_args(p, $2);
$<node>$ = add_block_exit(p, NEW_BREAK(args, &@$)); $$ = add_block_exit(p, NEW_BREAK(args, &@$));
/*% ripper: break!($:2) %*/ /*% ripper: break!($:2) %*/
} }
| keyword_next call_args | keyword_next call_args
{ {
NODE *args = 0; NODE *args = 0;
args = ret_args(p, $2); args = ret_args(p, $2);
$<node>$ = add_block_exit(p, NEW_NEXT(args, &@$)); $$ = add_block_exit(p, NEW_NEXT(args, &@$));
/*% ripper: next!($:2) %*/ /*% ripper: next!($:2) %*/
} }
; ;
@ -4790,17 +4790,17 @@ primary : literal
} }
| keyword_break | keyword_break
{ {
$<node>$ = add_block_exit(p, NEW_BREAK(0, &@$)); $$ = add_block_exit(p, NEW_BREAK(0, &@$));
/*% ripper: break!(args_new!) %*/ /*% ripper: break!(args_new!) %*/
} }
| keyword_next | keyword_next
{ {
$<node>$ = add_block_exit(p, NEW_NEXT(0, &@$)); $$ = add_block_exit(p, NEW_NEXT(0, &@$));
/*% ripper: next!(args_new!) %*/ /*% ripper: next!(args_new!) %*/
} }
| keyword_redo | keyword_redo
{ {
$<node>$ = add_block_exit(p, NEW_REDO(&@$)); $$ = add_block_exit(p, NEW_REDO(&@$));
/*% ripper: redo! %*/ /*% ripper: redo! %*/
} }
| keyword_retry | keyword_retry