[前][次][番号順一覧][スレッド一覧]

ruby-changes:40816

From: nobu <ko1@a...>
Date: Sat, 5 Dec 2015 16:58:20 +0900 (JST)
Subject: [ruby-changes:40816] nobu:r52895 (trunk): node.c: NODE_QCALL

nobu	2015-12-05 16:58:11 +0900 (Sat, 05 Dec 2015)

  New Revision: 52895

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52895

  Log:
    node.c: NODE_QCALL
    
    * node.c (dump_node): dump NODE_QCALL.  [Feature #11537]
      http://twitter.com/watson1978/status/673042429931446272

  Modified files:
    trunk/node.c
Index: node.c
===================================================================
--- node.c	(revision 52894)
+++ node.c	(revision 52895)
@@ -413,6 +413,16 @@ dump_node(VALUE buf, VALUE indent, int c https://github.com/ruby/ruby/blob/trunk/node.c#L413
 	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]");

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]