Refactor to use ripper_new_yylval2
This commit is contained in:
parent
94d7c70801
commit
34d802f32f
6
parse.y
6
parse.y
@ -1237,11 +1237,7 @@ new_args(struct parser_params *p, VALUE pre_args, VALUE opt_args, VALUE rest_arg
|
|||||||
static inline VALUE
|
static inline VALUE
|
||||||
new_args_tail(struct parser_params *p, VALUE kw_args, VALUE kw_rest_arg, VALUE block, YYLTYPE *loc)
|
new_args_tail(struct parser_params *p, VALUE kw_args, VALUE kw_rest_arg, VALUE block, YYLTYPE *loc)
|
||||||
{
|
{
|
||||||
NODE *t = rb_node_newnode(NODE_ARGS_AUX, kw_args, kw_rest_arg, block, &NULL_LOC);
|
return ripper_new_yylval2(p, kw_args, kw_rest_arg, block);
|
||||||
add_mark_object(p, kw_args);
|
|
||||||
add_mark_object(p, kw_rest_arg);
|
|
||||||
add_mark_object(p, block);
|
|
||||||
return (VALUE)t;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline VALUE
|
static inline VALUE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user