From 1c8154e5c9fc18878146330fb86f3216b4769aea Mon Sep 17 00:00:00 2001 From: ydah Date: Mon, 14 Apr 2025 22:05:08 +0900 Subject: [PATCH] Use call_op2 instead of call_op and tCOLON2 --- parse.y | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/parse.y b/parse.y index 86b22ad9ba..9fdf643340 100644 --- a/parse.y +++ b/parse.y @@ -5255,18 +5255,12 @@ method_call : fcall paren_args $$ = new_qcall(p, idCOLON2, $1, $3, 0, &@3, &@$); /*% ripper: call!($:1, $:2, $:3) %*/ } - | primary_value call_op paren_args + | primary_value call_op2 paren_args { $$ = new_qcall(p, $2, $1, idCall, $3, &@2, &@$); nd_set_line($$, @2.end_pos.lineno); /*% ripper: method_add_arg!(call!($:1, $:2, ID2VAL(idCall)), $:3) %*/ } - | primary_value tCOLON2 paren_args - { - $$ = new_qcall(p, idCOLON2, $1, idCall, $3, &@2, &@$); - nd_set_line($$, @2.end_pos.lineno); - /*% ripper: method_add_arg!(call!($:1, $:2, ID2VAL(idCall)), $:3) %*/ - } | keyword_super paren_args { rb_code_location_t lparen_loc = @2;