mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* expand tabs.
This commit is contained in:
parent
0b0c6cb7e4
commit
b31e1b4a7c
2 changed files with 9 additions and 9 deletions
|
@ -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;
|
const NODE *val_node = node->nd_body->nd_value;
|
||||||
VALUE dv;
|
VALUE dv;
|
||||||
|
|
||||||
if (val_node == NODE_SPECIAL_REQUIRED_KEYWORD) {
|
if (val_node == NODE_SPECIAL_REQUIRED_KEYWORD) {
|
||||||
++rkw;
|
++rkw;
|
||||||
}
|
}
|
||||||
else {
|
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);
|
debugs(" - argc: %d\n", body->param.lead_num);
|
||||||
|
|
||||||
rest_id = args->rest_arg;
|
rest_id = args->rest_arg;
|
||||||
if (rest_id == NODE_SPECIAL_EXCESSED_COMMA) {
|
if (rest_id == NODE_SPECIAL_EXCESSED_COMMA) {
|
||||||
last_comma = 1;
|
last_comma = 1;
|
||||||
rest_id = 0;
|
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));
|
LABEL *end_label = NEW_LABEL(nd_line(node));
|
||||||
const NODE *default_value = node->nd_body->nd_value;
|
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 */
|
/* required argument. do nothing */
|
||||||
COMPILE_ERROR(ERROR_ARGS "unreachable");
|
COMPILE_ERROR(ERROR_ARGS "unreachable");
|
||||||
goto ng;
|
goto ng;
|
||||||
|
|
12
node.c
12
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_ID(nd_ainfo->first_post_arg, "first post argument");
|
||||||
F_CUSTOM1(nd_ainfo->rest_arg, "rest argument") {
|
F_CUSTOM1(nd_ainfo->rest_arg, "rest argument") {
|
||||||
if (node->nd_ainfo->rest_arg == NODE_SPECIAL_EXCESSED_COMMA) {
|
if (node->nd_ainfo->rest_arg == NODE_SPECIAL_EXCESSED_COMMA) {
|
||||||
A("1 (excessed comma)");
|
A("1 (excessed comma)");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
A_ID(node->nd_ainfo->rest_arg);
|
A_ID(node->nd_ainfo->rest_arg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
F_ID(nd_ainfo->block_arg, "block argument");
|
F_ID(nd_ainfo->block_arg, "block argument");
|
||||||
F_NODE(nd_ainfo->opt_args, "optional arguments");
|
F_NODE(nd_ainfo->opt_args, "optional arguments");
|
||||||
F_NODE(nd_ainfo->kw_args, "keyword arguments");
|
F_NODE(nd_ainfo->kw_args, "keyword arguments");
|
||||||
|
|
Loading…
Add table
Reference in a new issue