aboutsummaryrefslogtreecommitdiffstats
path: root/node.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-12 03:03:36 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-12 03:03:36 +0000
commitfba5f0d769103c207aefb9604ceb295feb15d6f4 (patch)
tree02a0458ad77045f07268327bbe5633e512efa37d /node.c
parent0863f11ea636a42141c1c1023c70b8e41f5ed53c (diff)
downloadruby-fba5f0d769103c207aefb9604ceb295feb15d6f4.tar.gz
node.c: no attrset ID in NODE
* node.c (dump_node): attrset ID is no longer in NODE_OP_ASGN2. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'node.c')
-rw-r--r--node.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/node.c b/node.c
index 93f4df9ba2..8e99969730 100644
--- a/node.c
+++ b/node.c
@@ -358,8 +358,10 @@ dump_node(VALUE buf, VALUE indent, int comment, NODE *node)
ANN(" [attr] writer: [nd_next->nd_aid]");
ANN("example: struct.field += foo");
F_NODE(nd_recv, "receiver");
- F_ID(nd_next->nd_vid, "reader");
- F_ID(nd_next->nd_aid, "writer");
+ F_CUSTOM1(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") {
switch (node->nd_next->nd_mid) {
case 0: A("0 (||)"); break;