1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Use nd_X shorthand for annotation

[Fix GH-1901]

From: hkdnet <satoko.itse@gmail.com>

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2018-06-28 13:22:13 +00:00
parent 7b3878e1d0
commit 7c9fa8f9bb

6
node.c
View file

@ -787,7 +787,7 @@ dump_node(VALUE buf, VALUE indent, int comment, const NODE * node)
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 comment, const NODE * node)
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 comment, const NODE * node)
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");