From 55c62e676f3b30b47978684ab871e9d6e906fc27 Mon Sep 17 00:00:00 2001 From: yui-knk Date: Wed, 15 May 2024 09:32:36 +0900 Subject: [PATCH] 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 `` then type cast was needed. However currently these are only used by parser then no need to cast. --- parse.y | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/parse.y b/parse.y index 5fe9babefa..6365f4c89b 100644 --- a/parse.y +++ b/parse.y @@ -3613,14 +3613,14 @@ command : fcall command_args %prec tLOWEST { NODE *args = 0; args = ret_args(p, $2); - $$ = 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); - $$ = 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 { - $$ = add_block_exit(p, NEW_BREAK(0, &@$)); + $$ = add_block_exit(p, NEW_BREAK(0, &@$)); /*% ripper: break!(args_new!) %*/ } | keyword_next { - $$ = add_block_exit(p, NEW_NEXT(0, &@$)); + $$ = add_block_exit(p, NEW_NEXT(0, &@$)); /*% ripper: next!(args_new!) %*/ } | keyword_redo { - $$ = add_block_exit(p, NEW_REDO(&@$)); + $$ = add_block_exit(p, NEW_REDO(&@$)); /*% ripper: redo! %*/ } | keyword_retry