aboutsummaryrefslogtreecommitdiffstats
path: root/node_dump.c
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2023-10-18 23:59:34 +0900
committerYuichiro Kaneko <spiketeika@gmail.com>2023-10-20 07:56:20 +0900
commit08e25985d1cadf9487e0a02f3956236e1158b210 (patch)
tree178ddd17169375a09177c206c7d92807a80ff518 /node_dump.c
parent7fb909e240888f3187c8fdd20dee6e51d2a5c9d3 (diff)
downloadruby-08e25985d1cadf9487e0a02f3956236e1158b210.tar.gz
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.
Diffstat (limited to 'node_dump.c')
-rw-r--r--node_dump.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/node_dump.c b/node_dump.c
index f1800835e6..fdfa4eda09 100644
--- a/node_dump.c
+++ b/node_dump.c
@@ -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("format: [nd_recv] [ [nd_index] ] [nd_mid]= [nd_rvalue]");
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");
+ F_NODE(nd_index, RNODE_OP_ASGN1, "index");
LAST_NODE;
- F_NODE(nd_args->nd_body, RNODE_OP_ASGN1, "rvalue");
+ F_NODE(nd_rvalue, RNODE_OP_ASGN1, "rvalue");
return;
case NODE_OP_ASGN2: