Skip to content

Commit 486f7fc

Browse files
committed
parse.y: prefer @$ over @0 in empty-rule actions
1 parent 2ecda70 commit 486f7fc

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

parse.y

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3094,7 +3094,7 @@ rb_parser_ary_free(rb_parser_t *p, rb_parser_ary_t *ary)
30943094
}
30953095
| /* none */
30963096
{
3097-
$$ = new_args_tail(p, 0, 0, 0, &@0);
3097+
$$ = new_args_tail(p, 0, 0, 0, &@$);
30983098
/*% ripper: [Qnil, Qnil, Qnil] %*/
30993099
}
31003100
;
@@ -6260,11 +6260,11 @@ superclass : '<'
62606260
;
62616261

62626262
f_opt_paren_args: f_paren_args
6263-
| none
6263+
| /* none */
62646264
{
62656265
p->ctxt.in_argdef = 0;
6266-
$$ = new_args_tail(p, 0, 0, 0, &@0);
6267-
$$ = new_args(p, 0, 0, 0, 0, $$, &@0);
6266+
$$ = new_args_tail(p, 0, 0, 0, &@$);
6267+
$$ = new_args(p, 0, 0, 0, 0, $$, &@$);
62686268
/*% ripper: params!(Qnil, Qnil, Qnil, Qnil, Qnil, Qnil, Qnil) %*/
62696269
}
62706270
;
@@ -6387,8 +6387,8 @@ f_args : f_arg ',' f_opt_arg(arg_value) ',' f_rest_arg opt_args_tail(args_tail)
63876387
}
63886388
| /* none */
63896389
{
6390-
$$ = new_args_tail(p, 0, 0, 0, &@0);
6391-
$$ = new_args(p, 0, 0, 0, 0, $$, &@0);
6390+
$$ = new_args_tail(p, 0, 0, 0, &@$);
6391+
$$ = new_args(p, 0, 0, 0, 0, $$, &@$);
63926392
/*% ripper: params!(Qnil, Qnil, Qnil, Qnil, Qnil, Qnil, Qnil) %*/
63936393
}
63946394
;

0 commit comments

Comments
 (0)