aboutsummaryrefslogtreecommitdiffstats
path: root/node.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-12 03:39:23 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-12 03:39:23 +0000
commit20acd44f8a15893d4c88a38e8827facf777b05a6 (patch)
treed8fc9d8137c5974a53930292de8b7291465357f3 /node.c
parent617bc7162a2c8f8fdc5caa848853253714139f05 (diff)
downloadruby-20acd44f8a15893d4c88a38e8827facf777b05a6.tar.gz
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
Diffstat (limited to 'node.c')
-rw-r--r--node.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/node.c b/node.c
index 8e99969730..db9aa775f3 100644
--- a/node.c
+++ b/node.c
@@ -354,14 +354,10 @@ dump_node(VALUE buf, VALUE indent, int comment, NODE *node)
case NODE_OP_ASGN2:
ANN("attr assignment with operator");
ANN("format: [nd_value].[attr] [nd_next->nd_mid]= [nd_value]");
- ANN(" where [attr] reader: [nd_next->nd_vid]");
- ANN(" [attr] writer: [nd_next->nd_aid]");
+ ANN(" where [attr]: [nd_next->nd_vid]");
ANN("example: struct.field += foo");
F_NODE(nd_recv, "receiver");
- F_CUSTOM1(nd_next->nd_vid, "attr") {
- if (node->nd_next->nd_aid) A("? ");
- A_ID(node->nd_next->nd_vid);
- }
+ F_ID(nd_next->nd_vid, "attr");
F_CUSTOM1(nd_next->nd_mid, "operator") {
switch (node->nd_next->nd_mid) {
case 0: A("0 (||)"); break;