summaryrefslogtreecommitdiff
path: root/node_dump.c
diff options
context:
space:
mode:
authoryui-knk <[email protected]>2023-10-18 23:59:34 +0900
committerYuichiro Kaneko <[email protected]>2023-10-20 07:56:20 +0900
commit08e25985d1cadf9487e0a02f3956236e1158b210 ()
tree178ddd17169375a09177c206c7d92807a80ff518 /node_dump.c
parent7fb909e240888f3187c8fdd20dee6e51d2a5c9d3 (diff)
Expand OP_ASGN1 nd_args to nd_index and nd_rvalue
ARGSCAT has been used for nd_args to hold index and rvalue, because there was limitation on the number of members for Node. We can easily change structure of node now, let's expand it.
-rw-r--r--node_dump.c6
1 files changed, 3 insertions, 3 deletions
@@ -466,13 +466,13 @@ dump_node(VALUE buf, VALUE indent, int comment, const NODE * node)
case NODE_OP_ASGN1:
ANN("array assignment with operator");
- ANN("format: [nd_recv] [ [nd_args->nd_head] ] [nd_mid]= [nd_args->nd_body]");
ANN("example: ary[1] += foo");
F_NODE(nd_recv, RNODE_OP_ASGN1, "receiver");
F_ID(nd_mid, RNODE_OP_ASGN1, "operator");
- F_NODE(nd_args->nd_head, RNODE_OP_ASGN1, "index");
LAST_NODE;
- F_NODE(nd_args->nd_body, RNODE_OP_ASGN1, "rvalue");
return;
case NODE_OP_ASGN2: