mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
2 changed files with 1 additions and 7 deletions
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");
|
||||
|
|
1
parse.y
1
parse.y
|
@ -8806,7 +8806,6 @@ fixpos(NODE *node, NODE *orig)
|
|||
{
|
||||
if (!node) return;
|
||||
if (!orig) return;
|
||||
if (orig == (NODE*)1) return;
|
||||
nd_set_line(node, nd_line(orig));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue