NODE_CALL is not passed to node_assign_gen
* parse.y (node_assign_gen): NODE_CALL is not passed to node_assign_gen. NODE_CALL is not assignable. Assignable method call (array set and attr set) is represented by NODE_ATTRASGN. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8a664f0c96
commit
f26cce0bba
1
parse.y
1
parse.y
@ -10123,7 +10123,6 @@ node_assign_gen(struct parser_params *parser, NODE *lhs, NODE *rhs, const YYLTYP
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case NODE_ATTRASGN:
|
case NODE_ATTRASGN:
|
||||||
case NODE_CALL:
|
|
||||||
lhs->nd_args = arg_append(lhs->nd_args, rhs, location);
|
lhs->nd_args = arg_append(lhs->nd_args, rhs, location);
|
||||||
lhs->nd_loc = *location;
|
lhs->nd_loc = *location;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user