mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
b8172ec972
commit
613737eee9
1 changed files with 10 additions and 0 deletions
10
node.c
10
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]");
|
||||
|
|
Loading…
Reference in a new issue