node.c: update comment
* node.c (dump_node): update comment for OP_ASGN2 and fix unused field. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b0e372a867
commit
18e4a39c9a
8
node.c
8
node.c
@ -354,14 +354,10 @@ dump_node(VALUE buf, VALUE indent, int comment, NODE *node)
|
|||||||
case NODE_OP_ASGN2:
|
case NODE_OP_ASGN2:
|
||||||
ANN("attr assignment with operator");
|
ANN("attr assignment with operator");
|
||||||
ANN("format: [nd_value].[attr] [nd_next->nd_mid]= [nd_value]");
|
ANN("format: [nd_value].[attr] [nd_next->nd_mid]= [nd_value]");
|
||||||
ANN(" where [attr] reader: [nd_next->nd_vid]");
|
ANN(" where [attr]: [nd_next->nd_vid]");
|
||||||
ANN(" [attr] writer: [nd_next->nd_aid]");
|
|
||||||
ANN("example: struct.field += foo");
|
ANN("example: struct.field += foo");
|
||||||
F_NODE(nd_recv, "receiver");
|
F_NODE(nd_recv, "receiver");
|
||||||
F_CUSTOM1(nd_next->nd_vid, "attr") {
|
F_ID(nd_next->nd_vid, "attr");
|
||||||
if (node->nd_next->nd_aid) A("? ");
|
|
||||||
A_ID(node->nd_next->nd_vid);
|
|
||||||
}
|
|
||||||
F_CUSTOM1(nd_next->nd_mid, "operator") {
|
F_CUSTOM1(nd_next->nd_mid, "operator") {
|
||||||
switch (node->nd_next->nd_mid) {
|
switch (node->nd_next->nd_mid) {
|
||||||
case 0: A("0 (||)"); break;
|
case 0: A("0 (||)"); break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user