From 07f27383b77b966a84aacc6b568c67c019320187 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 28 Feb 2020 15:38:14 +0900 Subject: [PATCH] Refined argument name --- parse.y | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/parse.y b/parse.y index a436408235..34f8fefd83 100644 --- a/parse.y +++ b/parse.y @@ -11306,7 +11306,7 @@ new_args(struct parser_params *p, NODE *pre_args, NODE *opt_args, ID rest_arg, N } static NODE* -new_args_tail(struct parser_params *p, NODE *kw_args, ID kw_rest_arg, ID block, const YYLTYPE *loc) +new_args_tail(struct parser_params *p, NODE *kw_args, ID kw_rest_arg, ID block, const YYLTYPE *kw_rest_loc) { int saved_line = p->ruby_sourceline; NODE *node; @@ -11355,14 +11355,14 @@ new_args_tail(struct parser_params *p, NODE *kw_args, ID kw_rest_arg, ID block, if (kw_rest_arg) arg_var(p, kw_rest_arg); if (block) arg_var(p, block); - args->kw_rest_arg = NEW_DVAR(kw_rest_arg, loc); + args->kw_rest_arg = NEW_DVAR(kw_rest_arg, kw_rest_loc); args->kw_rest_arg->nd_cflag = kw_bits; } else if (kw_rest_arg == idNil) { args->no_kwarg = 1; } else if (kw_rest_arg) { - args->kw_rest_arg = NEW_DVAR(kw_rest_arg, loc); + args->kw_rest_arg = NEW_DVAR(kw_rest_arg, kw_rest_loc); } p->ruby_sourceline = saved_line;