diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-04 12:47:22 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-04 12:47:22 +0000 |
commit | 0947c2ba63d6f0da53a181edb98c0cde77142670 (patch) | |
tree | cd6912441ff0f62bb1a5dcface427b83c68a4d3e /node.c | |
parent | 3ec5c75594720a0b4ddb515a301c1fbc29539541 (diff) | |
download | ruby-0947c2ba63d6f0da53a181edb98c0cde77142670.tar.gz |
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.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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]"); |