Remove special handling for (NODE*)1
The magic number was used to mark NODE_ATTRASGN when its receiver is self. But the hack was refactored at r46366. So the remaining code fragments are no longer needed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
752faf4fb4
commit
f70aa7637b
7
node.c
7
node.c
@ -930,12 +930,7 @@ dump_node(VALUE buf, VALUE indent, int comment, NODE *node)
|
||||
ANN("attr assignment");
|
||||
ANN("format: [nd_recv].[nd_mid] = [nd_args]");
|
||||
ANN("example: struct.field = foo");
|
||||
if (node->nd_recv == (NODE *) 1) {
|
||||
F_MSG(nd_recv, "receiver", "1 (self)");
|
||||
}
|
||||
else {
|
||||
F_NODE(nd_recv, "receiver");
|
||||
}
|
||||
F_NODE(nd_recv, "receiver");
|
||||
F_ID(nd_mid, "method name");
|
||||
LAST_NODE;
|
||||
F_NODE(nd_args, "arguments");
|
||||
|
Loading…
x
Reference in New Issue
Block a user