[前][次][番号順一覧][スレッド一覧]

ruby-changes:40035

From: nobu <ko1@a...>
Date: Mon, 12 Oct 2015 12:39:28 +0900 (JST)
Subject: [ruby-changes:40035] nobu:r52116 (trunk): node.c: update comment

nobu	2015-10-12 12:39:23 +0900 (Mon, 12 Oct 2015)

  New Revision: 52116

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52116

  Log:
    node.c: update comment
    
    * node.c (dump_node): update comment for OP_ASGN2 and fix unused
      field.

  Modified files:
    trunk/node.c
Index: node.c
===================================================================
--- node.c	(revision 52115)
+++ node.c	(revision 52116)
@@ -354,14 +354,10 @@ dump_node(VALUE buf, VALUE indent, int c https://github.com/ruby/ruby/blob/trunk/node.c#L354
       case NODE_OP_ASGN2:
 	ANN("attr assignment with operator");
 	ANN("format: [nd_value].[attr] [nd_next->nd_mid]= [nd_value]");
-	ANN("          where [attr] reader: [nd_next->nd_vid]");
-	ANN("                [attr] writer: [nd_next->nd_aid]");
+	ANN("          where [attr]: [nd_next->nd_vid]");
 	ANN("example: struct.field += foo");
 	F_NODE(nd_recv, "receiver");
-	F_CUSTOM1(nd_next->nd_vid, "attr") {
-	    if (node->nd_next->nd_aid) A("? ");
-	    A_ID(node->nd_next->nd_vid);
-	}
+	F_ID(nd_next->nd_vid, "attr");
 	F_CUSTOM1(nd_next->nd_mid, "operator") {
 	    switch (node->nd_next->nd_mid) {
 	      case 0: A("0 (||)"); break;

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]