diff options
author | ydah <[email protected]> | 2024-11-03 00:47:19 +0900 |
---|---|---|
committer | Yudai Takada <[email protected]> | 2025-01-04 20:27:40 +0900 |
commit | 24653430cde5f7abb895d1a009ebf4d8cfc39519 (patch) | |
tree | 98c771b7aa882d31709cb1b09bb54d3d96561878 /ast.c | |
parent | 61c4907458f00841f28feb2daeb508af8c494d51 (diff) |
Implement FLIP2 NODE locations
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/11986
Diffstat (limited to 'ast.c')
-rw-r--r-- | ast.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -820,6 +820,10 @@ node_locations(VALUE ast_value, const NODE *node) location_new(nd_code_loc(node)), location_new(&RNODE_EVSTR(node)->opening_loc), location_new(&RNODE_EVSTR(node)->closing_loc)); + case NODE_FLIP2: + return rb_ary_new_from_args(2, + location_new(nd_code_loc(node)), + location_new(&RNODE_FLIP2(node)->operator_loc)); case NODE_LAMBDA: return rb_ary_new_from_args(4, location_new(nd_code_loc(node)), |