summaryrefslogtreecommitdiff
path: root/node_dump.c
diff options
context:
space:
mode:
authorydah <[email protected]>2024-09-22 00:13:16 +0900
committerYuichiro Kaneko <[email protected]>2024-09-23 09:19:37 +0900
commitfeac2b4b77b337a637d80793c53b680e5697cab6 ()
tree60fee0d4bd0bb523aa24935abf9ec8a4a73a6b89 /node_dump.c
parent02b36f75721aa61d48e3031c71695837d7a8a410 (diff)
Implement CASE NODE keyword locations
Notes: Merged: https://.com/ruby/ruby/pull/11661
-rw-r--r--node_dump.c4
1 files changed, 3 insertions, 1 deletions
@@ -261,8 +261,10 @@ dump_node(VALUE buf, VALUE indent, int comment, const NODE * node)
ANN("format: case [nd_head]; [nd_body]; end");
ANN("example: case x; when 1; foo; when 2; bar; else baz; end");
F_NODE(nd_head, RNODE_CASE, "case expr");
- LAST_NODE;
F_NODE(nd_body, RNODE_CASE, "when clauses");
return;
case NODE_CASE2:
ANN("case statement with no head");