ruby-changes:51399
From: yui-knk <ko1@a...>
Date: Fri, 8 Jun 2018 08:18:22 +0900 (JST)
Subject: [ruby-changes:51399] yui-knk:r63605 (trunk): node.c: Fix format of NODE_OP_ASGN1 and NODE_OP_ASGN2
yui-knk 2018-06-08 08:18:16 +0900 (Fri, 08 Jun 2018) New Revision: 63605 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63605 Log: node.c: Fix format of NODE_OP_ASGN1 and NODE_OP_ASGN2 Modified files: trunk/node.c Index: node.c =================================================================== --- node.c (revision 63604) +++ node.c (revision 63605) @@ -428,7 +428,7 @@ dump_node(VALUE buf, VALUE indent, int c https://github.com/ruby/ruby/blob/trunk/node.c#L428 case NODE_OP_ASGN1: ANN("array assignment with operator"); - ANN("format: [nd_value] [ [nd_args->nd_body] ] [nd_vid]= [nd_args->nd_head]"); + ANN("format: [nd_recv] [ [nd_args->nd_head] ] [nd_mid]= [nd_args->nd_body]"); ANN("example: ary[1] += foo"); F_NODE(nd_recv, "receiver"); F_ID(nd_mid, "operator"); @@ -439,7 +439,7 @@ dump_node(VALUE buf, VALUE indent, int c https://github.com/ruby/ruby/blob/trunk/node.c#L439 case NODE_OP_ASGN2: ANN("attr assignment with operator"); - ANN("format: [nd_value].[attr] [nd_next->nd_mid]= [nd_value]"); + ANN("format: [nd_recv].[attr] [nd_next->nd_mid]= [nd_value]"); ANN(" where [attr]: [nd_next->nd_vid]"); ANN("example: struct.field += foo"); F_NODE(nd_recv, "receiver"); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/