diff options
author | ydah <[email protected]> | 2024-09-24 14:49:00 +0900 |
---|---|---|
committer | Yuichiro Kaneko <[email protected]> | 2024-09-25 09:15:43 +0900 |
commit | 509b577e0126d92f37ae45d83863c449f8666be1 (patch) | |
tree | 6c4082c676a086f8818717ec19f078772f75ad9c /ast.c | |
parent | 31a88d1554550a7c70fd63991051890c4fd71ac7 (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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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)), |