Follow up NODE_OP_ASGN2 structure change

This commit is contained in:
yui-knk 2023-10-24 18:54:48 +09:00 committed by Yuichiro Kaneko
parent d8cb827f39
commit a2badf3066

View File

@ -477,11 +477,10 @@ dump_node(VALUE buf, VALUE indent, int comment, const NODE * node)
case NODE_OP_ASGN2: case NODE_OP_ASGN2:
ANN("attr assignment with operator"); ANN("attr assignment with operator");
ANN("format: [nd_recv].[attr] [nd_next->nd_mid]= [nd_value]"); ANN("format: [nd_recv].[nd_vid] [nd_mid]= [nd_value]");
ANN(" where [attr]: [nd_next->nd_vid]");
ANN("example: struct.field += foo"); ANN("example: struct.field += foo");
F_NODE(nd_recv, RNODE_OP_ASGN2, "receiver"); F_NODE(nd_recv, RNODE_OP_ASGN2, "receiver");
F_CUSTOM1(nd_next->nd_vid, "attr") { F_CUSTOM1(nd_vid, "attr") {
if (RNODE_OP_ASGN2(node)->nd_aid) A("? "); if (RNODE_OP_ASGN2(node)->nd_aid) A("? ");
A_ID(RNODE_OP_ASGN2(node)->nd_vid); A_ID(RNODE_OP_ASGN2(node)->nd_vid);
} }