aboutsummaryrefslogtreecommitdiffstats
path: root/node.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-05 07:58:11 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-05 07:58:11 +0000
commit3a9a702937104a860f640e29b55df091dfff1fb4 (patch)
treedcf7586ec1911555f55208e9d43e2ec5af30530f /node.c
parenteaa49374b99983b8f4ff3b96a58d669d5b814854 (diff)
downloadruby-3a9a702937104a860f640e29b55df091dfff1fb4.tar.gz
node.c: NODE_QCALL
* node.c (dump_node): dump NODE_QCALL. [Feature #11537] http://twitter.com/watson1978/status/673042429931446272 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'node.c')
-rw-r--r--node.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/node.c b/node.c
index 320e5d3bd4..a8ccf05780 100644
--- a/node.c
+++ b/node.c
@@ -413,6 +413,16 @@ dump_node(VALUE buf, VALUE indent, int comment, NODE *node)
F_ID(nd_mid, "method id");
break;
+ case NODE_QCALL:
+ ANN("safe method invocation");
+ ANN("format: [nd_recv]&.[nd_mid]([nd_args])");
+ ANN("example: obj&.foo(1)");
+ F_ID(nd_mid, "method id");
+ F_NODE(nd_recv, "receiver");
+ LAST_NODE;
+ F_NODE(nd_args, "arguments");
+ break;
+
case NODE_SUPER:
ANN("super invocation");
ANN("format: super [nd_args]");