Skip to content

Commit 1c8154e

Browse files
committed
Use call_op2 instead of call_op and tCOLON2
1 parent c13ac4d commit 1c8154e

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

parse.y

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5255,18 +5255,12 @@ method_call : fcall paren_args
52555255
$$ = new_qcall(p, idCOLON2, $1, $3, 0, &@3, &@$);
52565256
/*% ripper: call!($:1, $:2, $:3) %*/
52575257
}
5258-
| primary_value call_op paren_args
5258+
| primary_value call_op2 paren_args
52595259
{
52605260
$$ = new_qcall(p, $2, $1, idCall, $3, &@2, &@$);
52615261
nd_set_line($$, @2.end_pos.lineno);
52625262
/*% ripper: method_add_arg!(call!($:1, $:2, ID2VAL(idCall)), $:3) %*/
52635263
}
5264-
| primary_value tCOLON2 paren_args
5265-
{
5266-
$$ = new_qcall(p, idCOLON2, $1, idCall, $3, &@2, &@$);
5267-
nd_set_line($$, @2.end_pos.lineno);
5268-
/*% ripper: method_add_arg!(call!($:1, $:2, ID2VAL(idCall)), $:3) %*/
5269-
}
52705264
| keyword_super paren_args
52715265
{
52725266
rb_code_location_t lparen_loc = @2;

0 commit comments

Comments
 (0)