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 коммит произвёл Nobuyoshi Nakada
Родитель cce7c25a42
Коммит 55c62e676f
1 изменённых файлов: 5 добавлений и 5 удалений

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