diff options
author | ydah <[email protected]> | 2024-11-03 00:26:25 +0900 |
---|---|---|
committer | Yudai Takada <[email protected]> | 2025-01-04 20:27:40 +0900 |
commit | 88da6856a3f5cc6a84a8d1909f56952c605ef0dc (patch) | |
tree | e3d4d59629e43776fe28c7ecdf2d64a03f056474 /ast.c | |
parent | a1f010b8e41f5406a728cc8a75816a0a20bf2174 (diff) |
Implement DOT2 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
@@ -807,6 +807,10 @@ node_locations(VALUE ast_value, const NODE *node) location_new(nd_code_loc(node)), location_new(&RNODE_CASE3(node)->case_keyword_loc), location_new(&RNODE_CASE3(node)->end_keyword_loc)); + case NODE_DOT2: + return rb_ary_new_from_args(2, + location_new(nd_code_loc(node)), + location_new(&RNODE_DOT2(node)->operator_loc)); case NODE_EVSTR: return rb_ary_new_from_args(3, location_new(nd_code_loc(node)), |