diff options
| author | yui-knk <spiketeika@gmail.com> | 2023-09-24 11:13:57 +0900 |
|---|---|---|
| committer | Yuichiro Kaneko <spiketeika@gmail.com> | 2023-09-24 12:58:01 +0900 |
| commit | 34d802f32f00df1ac0220b62f72605827c16bad8 (patch) | |
| tree | a386b71237968152b80322acb2c192ac192c6e9e | |
| parent | 94d7c7080191b0ee3b4a8247788208aa732ce810 (diff) | |
Refactor to use ripper_new_yylval2
| -rw-r--r-- | parse.y | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -1237,11 +1237,7 @@ new_args(struct parser_params *p, VALUE pre_args, VALUE opt_args, VALUE rest_arg static inline VALUE 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); - add_mark_object(p, kw_args); - add_mark_object(p, kw_rest_arg); - add_mark_object(p, block); - return (VALUE)t; + return ripper_new_yylval2(p, kw_args, kw_rest_arg, block); } static inline VALUE |
