summaryrefslogtreecommitdiff
path: root/ast.c
diff options
context:
space:
mode:
authorydah <[email protected]>2024-11-03 00:26:25 +0900
committerYudai Takada <[email protected]>2025-01-04 20:27:40 +0900
commit88da6856a3f5cc6a84a8d1909f56952c605ef0dc (patch)
treee3d4d59629e43776fe28c7ecdf2d64a03f056474 /ast.c
parenta1f010b8e41f5406a728cc8a75816a0a20bf2174 (diff)
Implement DOT2 NODE locations
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/11986
Diffstat (limited to 'ast.c')
-rw-r--r--ast.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ast.c b/ast.c
index 35e8b9d667..22246cb058 100644
--- a/ast.c
+++ b/ast.c
@@ -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)),