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

ruby-changes:51571

From: nobu <ko1@a...>
Date: Fri, 29 Jun 2018 10:08:13 +0900 (JST)
Subject: [ruby-changes:51571] nobu:r63780 (trunk): Use nd_X shorthand for annotation

nobu	2018-06-28 22:22:13 +0900 (Thu, 28 Jun 2018)

  New Revision: 63780

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

  Log:
    Use nd_X shorthand for annotation
    
    [Fix GH-1901]
    
    From: hkdnet <satoko.itse@g...>

  Modified files:
    trunk/node.c
Index: node.c
===================================================================
--- node.c	(revision 63779)
+++ node.c	(revision 63780)
@@ -787,7 +787,7 @@ dump_node(VALUE buf, VALUE indent, int c https://github.com/ruby/ruby/blob/trunk/node.c#L787
 
       case NODE_ALIAS:
 	ANN("method alias statement");
-	ANN("format: alias [u1.node] [u2.node]");
+	ANN("format: alias [nd_1st] [nd_2nd]");
 	ANN("example: alias bar foo");
 	F_NODE(nd_1st, "new name");
 	LAST_NODE;
@@ -796,7 +796,7 @@ dump_node(VALUE buf, VALUE indent, int c https://github.com/ruby/ruby/blob/trunk/node.c#L796
 
       case NODE_VALIAS:
 	ANN("global variable alias statement");
-	ANN("format: alias [u1.id](gvar) [u2.id](gvar)");
+	ANN("format: alias [nd_alias](gvar) [nd_orig](gvar)");
 	ANN("example: alias $y $x");
 	F_ID(nd_alias, "new name");
 	F_ID(nd_orig, "old name");
@@ -804,7 +804,7 @@ dump_node(VALUE buf, VALUE indent, int c https://github.com/ruby/ruby/blob/trunk/node.c#L804
 
       case NODE_UNDEF:
 	ANN("method alias statement");
-	ANN("format: undef [u2.node]");
+	ANN("format: undef [nd_undef]");
 	ANN("example: undef foo");
 	LAST_NODE;
 	F_NODE(nd_undef, "old name");

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

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