summaryrefslogtreecommitdiff
path: root/node.c
diff options
context:
space:
mode:
authoryui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-05-10 09:49:55 +0000
committeryui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-05-10 09:49:55 +0000
commitbd97ca443f6ca7e01c6ec933c652834f33f69231 (patch)
tree8cb9665c93c5e1f98c5281d18e1b9504eb95f858 /node.c
parentec959fbb4b90af84c7a0a0b405fbe15cc0933e0d (diff)
node.c: Fix format and example of NODE_OPCALL
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'node.c')
-rw-r--r--node.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/node.c b/node.c
index d025eccf62..c5826e70f9 100644
--- a/node.c
+++ b/node.c
@@ -478,7 +478,6 @@ dump_node(VALUE buf, VALUE indent, int comment, const NODE * node)
return;
case NODE_CALL:
- case NODE_OPCALL:
ANN("method invocation");
ANN("format: [nd_recv].[nd_mid]([nd_args])");
ANN("example: obj.foo(1)");
@@ -488,6 +487,16 @@ dump_node(VALUE buf, VALUE indent, int comment, const NODE * node)
F_NODE(nd_args, "arguments");
return;
+ case NODE_OPCALL:
+ ANN("method invocation");
+ ANN("format: [nd_recv] [nd_mid] [nd_args]");
+ ANN("example: foo + bar");
+ F_ID(nd_mid, "method id");
+ F_NODE(nd_recv, "receiver");
+ LAST_NODE;
+ F_NODE(nd_args, "arguments");
+ return;
+
case NODE_FCALL:
ANN("function call");
ANN("format: [nd_mid]([nd_args])");