diff options
author | ydah <[email protected]> | 2024-09-22 00:22:59 +0900 |
---|---|---|
committer | Yuichiro Kaneko <[email protected]> | 2024-09-23 09:19:37 +0900 |
commit | b811a9a097f2ce9ed9b200be84523698bc693e54 (patch) | |
tree | 86d1e684b4b6915a8b9d3eddf35bffaac4961d3b /ast.c | |
parent | 5334766bebcb471549b300c6e6e9cf0d08575116 (diff) |
Implement CASE3 NODE keyword locations
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/11661
Diffstat (limited to 'ast.c')
-rw-r--r-- | ast.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -797,6 +797,11 @@ node_locations(VALUE ast_value, const NODE *node) location_new(nd_code_loc(node)), location_new(&RNODE_CASE2(node)->case_keyword_loc), location_new(&RNODE_CASE2(node)->end_keyword_loc)); + case NODE_CASE3: + return rb_ary_new_from_args(3, + location_new(nd_code_loc(node)), + location_new(&RNODE_CASE3(node)->case_keyword_loc), + location_new(&RNODE_CASE3(node)->end_keyword_loc)); case NODE_NEXT: return rb_ary_new_from_args(2, location_new(nd_code_loc(node)), |