ruby-changes:51186
From: yui-knk <ko1@a...>
Date: Thu, 10 May 2018 18:50:00 +0900 (JST)
Subject: [ruby-changes:51186] yui-knk:r63393 (trunk): node.c: Fix format and example of NODE_OPCALL
yui-knk 2018-05-10 18:49:55 +0900 (Thu, 10 May 2018) New Revision: 63393 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63393 Log: node.c: Fix format and example of NODE_OPCALL Modified files: trunk/node.c Index: node.c =================================================================== --- node.c (revision 63392) +++ node.c (revision 63393) @@ -478,7 +478,6 @@ dump_node(VALUE buf, VALUE indent, int c https://github.com/ruby/ruby/blob/trunk/node.c#L478 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 c https://github.com/ruby/ruby/blob/trunk/node.c#L487 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])"); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/