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

ruby-changes:40033

From: nobu <ko1@a...>
Date: Mon, 12 Oct 2015 12:03:41 +0900 (JST)
Subject: [ruby-changes:40033] nobu:r52114 (trunk): node.c: no attrset ID in NODE

nobu	2015-10-12 12:03:36 +0900 (Mon, 12 Oct 2015)

  New Revision: 52114

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

  Log:
    node.c: no attrset ID in NODE
    
    * node.c (dump_node): attrset ID is no longer in NODE_OP_ASGN2.

  Modified files:
    trunk/node.c
Index: node.c
===================================================================
--- node.c	(revision 52113)
+++ node.c	(revision 52114)
@@ -358,8 +358,10 @@ dump_node(VALUE buf, VALUE indent, int c https://github.com/ruby/ruby/blob/trunk/node.c#L358
 	ANN("                [attr] writer: [nd_next->nd_aid]");
 	ANN("example: struct.field += foo");
 	F_NODE(nd_recv, "receiver");
-	F_ID(nd_next->nd_vid, "reader");
-	F_ID(nd_next->nd_aid, "writer");
+	F_CUSTOM1(nd_next->nd_vid, "attr") {
+	    if (node->nd_next->nd_aid) A("? ");
+	    A_ID(node->nd_next->nd_vid);
+	}
 	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/

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