summaryrefslogtreecommitdiff
path: root/node.c
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-04 12:47:22 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-04 12:47:22 +0000
commit0947c2ba63d6f0da53a181edb98c0cde77142670 (patch)
treecd6912441ff0f62bb1a5dcface427b83c68a4d3e /node.c
parent3ec5c75594720a0b4ddb515a301c1fbc29539541 (diff)
node.h: add NODE_ONCE instead of reuse of NODE_SCOPE
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'node.c')
-rw-r--r--node.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/node.c b/node.c
index 23b15c2dbc..dfbfc9eb44 100644
--- a/node.c
+++ b/node.c
@@ -716,6 +716,13 @@ dump_node(VALUE buf, VALUE indent, int comment, NODE *node)
F_LIT(nd_lit, "literal");
return;
+ case NODE_ONCE:
+ ANN("once evaluation");
+ ANN("format: [nd_body]");
+ ANN("example: /foo#{ bar }baz/o");
+ LAST_NODE;
+ F_NODE(nd_body, "body");
+ return;
case NODE_DSTR:
ANN("string literal with interpolation");
ANN("format: [nd_lit]");