summaryrefslogtreecommitdiff
path: root/ast.c
diff options
context:
space:
mode:
authorydah <[email protected]>2024-09-24 14:49:00 +0900
committerYuichiro Kaneko <[email protected]>2024-09-25 09:15:43 +0900
commit509b577e0126d92f37ae45d83863c449f8666be1 (patch)
tree6c4082c676a086f8818717ec19f078772f75ad9c /ast.c
parent31a88d1554550a7c70fd63991051890c4fd71ac7 (diff)
Implement BLOCK_PASS NODE keyword locations
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/11663
Diffstat (limited to 'ast.c')
-rw-r--r--ast.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ast.c b/ast.c
index a3490823ae..d2bc60c3e1 100644
--- a/ast.c
+++ b/ast.c
@@ -783,6 +783,11 @@ node_locations(VALUE ast_value, const NODE *node)
return rb_ary_new_from_args(2,
location_new(nd_code_loc(node)),
location_new(&RNODE_AND(node)->operator_loc));
+ case NODE_BLOCK_PASS:
+ return rb_ary_new_from_args(2,
+ location_new(nd_code_loc(node)),
+ location_new(&RNODE_BLOCK_PASS(node)->operator_loc));
+
case NODE_BREAK:
return rb_ary_new_from_args(2,
location_new(nd_code_loc(node)),