summaryrefslogtreecommitdiff
path: root/node_dump.c
diff options
context:
space:
mode:
authorydah <[email protected]>2024-09-24 20:05:12 +0900
committerYuichiro Kaneko <[email protected]>2024-09-30 18:04:41 +0900
commit044e57ed7c34bfe2cea6e7dcc685cc0a4050c86f (patch)
tree8860acb22cee3b0882e94ed6ca7da976daef40b7 /node_dump.c
parent239c1c621e92f519498e421cf825f44667c0e56c (diff)
Implement SPLAT NODE keyword locations
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/11673
Diffstat (limited to 'node_dump.c')
-rw-r--r--node_dump.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/node_dump.c b/node_dump.c
index 9e4dd5158c..d346ba9a7e 100644
--- a/node_dump.c
+++ b/node_dump.c
@@ -902,8 +902,9 @@ dump_node(VALUE buf, VALUE indent, int comment, const NODE * node)
ANN("splat argument");
ANN("format: *[nd_head]");
ANN("example: foo(*ary)");
- LAST_NODE;
F_NODE(nd_head, RNODE_SPLAT, "splat'ed array");
+ LAST_NODE;
+ F_LOC(operator_loc, RNODE_SPLAT);
return;
case NODE_BLOCK_PASS: