node.c: adjust indent
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ee34bbbcbd
commit
4e01c50774
22
node.c
22
node.c
@ -420,12 +420,12 @@ dump_node(VALUE buf, VALUE indent, int comment, NODE *node)
|
|||||||
ANN("format: [nd_else]::[nd_vid](constant) = [nd_value]");
|
ANN("format: [nd_else]::[nd_vid](constant) = [nd_value]");
|
||||||
ANN("example: X = foo");
|
ANN("example: X = foo");
|
||||||
if (node->nd_vid) {
|
if (node->nd_vid) {
|
||||||
F_ID(nd_vid, "constant");
|
F_ID(nd_vid, "constant");
|
||||||
F_MSG(nd_else, "extension", "not used");
|
F_MSG(nd_else, "extension", "not used");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
F_MSG(nd_vid, "constant", "0 (see extension field)");
|
F_MSG(nd_vid, "constant", "0 (see extension field)");
|
||||||
F_NODE(nd_else, "extension");
|
F_NODE(nd_else, "extension");
|
||||||
}
|
}
|
||||||
LAST_NODE;
|
LAST_NODE;
|
||||||
F_NODE(nd_value, "rvalue");
|
F_NODE(nd_value, "rvalue");
|
||||||
@ -437,12 +437,12 @@ dump_node(VALUE buf, VALUE indent, int comment, NODE *node)
|
|||||||
ANN("example: ary[1] += foo");
|
ANN("example: ary[1] += foo");
|
||||||
F_NODE(nd_recv, "receiver");
|
F_NODE(nd_recv, "receiver");
|
||||||
F_CUSTOM1(nd_mid, "operator") {
|
F_CUSTOM1(nd_mid, "operator") {
|
||||||
switch (node->nd_mid) {
|
switch (node->nd_mid) {
|
||||||
case 0: A("0 (||)"); break;
|
case 0: A("0 (||)"); break;
|
||||||
case 1: A("1 (&&)"); break;
|
case 1: A("1 (&&)"); break;
|
||||||
default: A_ID(node->nd_mid);
|
default: A_ID(node->nd_mid);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
F_NODE(nd_args->nd_head, "index");
|
F_NODE(nd_args->nd_head, "index");
|
||||||
LAST_NODE;
|
LAST_NODE;
|
||||||
F_NODE(nd_args->nd_body, "rvalue");
|
F_NODE(nd_args->nd_body, "rvalue");
|
||||||
@ -495,7 +495,7 @@ dump_node(VALUE buf, VALUE indent, int comment, NODE *node)
|
|||||||
case 1: A("1 (&&)"); break;
|
case 1: A("1 (&&)"); break;
|
||||||
default: A_ID(node->nd_mid);
|
default: A_ID(node->nd_mid);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
LAST_NODE;
|
LAST_NODE;
|
||||||
F_NODE(nd_value, "rvalue");
|
F_NODE(nd_value, "rvalue");
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user