summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgit <svn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-06-04 23:17:38 +0900
committergit <svn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-06-04 23:17:38 +0900
commitb31e1b4a7c5b97d861c2b34ed4ccd982d5c6cb82 (patch)
tree4e842709d00d096deeb564f96a6405f8713f3381
parent0b0c6cb7e4fa17247cb214c4eaf924617a55e9a7 (diff)
downloadruby-b31e1b4a7c5b97d861c2b34ed4ccd982d5c6cb82.tar.gz
* expand tabs.
-rw-r--r--compile.c6
-rw-r--r--node.c12
2 files changed, 9 insertions, 9 deletions
diff --git a/compile.c b/compile.c
index 889dc32280..66b7589bf7 100644
--- a/compile.c
+++ b/compile.c
@@ -1556,7 +1556,7 @@ iseq_set_arguments_keywords(rb_iseq_t *iseq, LINK_ANCHOR *const optargs,
const NODE *val_node = node->nd_body->nd_value;
VALUE dv;
- if (val_node == NODE_SPECIAL_REQUIRED_KEYWORD) {
+ if (val_node == NODE_SPECIAL_REQUIRED_KEYWORD) {
++rkw;
}
else {
@@ -1632,7 +1632,7 @@ iseq_set_arguments(rb_iseq_t *iseq, LINK_ANCHOR *const optargs, const NODE *cons
debugs(" - argc: %d\n", body->param.lead_num);
rest_id = args->rest_arg;
- if (rest_id == NODE_SPECIAL_EXCESSED_COMMA) {
+ if (rest_id == NODE_SPECIAL_EXCESSED_COMMA) {
last_comma = 1;
rest_id = 0;
}
@@ -8012,7 +8012,7 @@ iseq_compile_each0(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *node, in
LABEL *end_label = NEW_LABEL(nd_line(node));
const NODE *default_value = node->nd_body->nd_value;
- if (default_value == NODE_SPECIAL_REQUIRED_KEYWORD) {
+ if (default_value == NODE_SPECIAL_REQUIRED_KEYWORD) {
/* required argument. do nothing */
COMPILE_ERROR(ERROR_ARGS "unreachable");
goto ng;
diff --git a/node.c b/node.c
index 864e115472..8be6f81f87 100644
--- a/node.c
+++ b/node.c
@@ -1012,12 +1012,12 @@ dump_node(VALUE buf, VALUE indent, int comment, const NODE * node)
F_ID(nd_ainfo->first_post_arg, "first post argument");
F_CUSTOM1(nd_ainfo->rest_arg, "rest argument") {
if (node->nd_ainfo->rest_arg == NODE_SPECIAL_EXCESSED_COMMA) {
- A("1 (excessed comma)");
- }
- else {
- A_ID(node->nd_ainfo->rest_arg);
- }
- }
+ A("1 (excessed comma)");
+ }
+ else {
+ A_ID(node->nd_ainfo->rest_arg);
+ }
+ }
F_ID(nd_ainfo->block_arg, "block argument");
F_NODE(nd_ainfo->opt_args, "optional arguments");
F_NODE(nd_ainfo->kw_args, "keyword arguments");