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 ()
treee3d4d59629e43776fe28c7ecdf2d64a03f056474 /ast.c
parenta1f010b8e41f5406a728cc8a75816a0a20bf2174 (diff)
Implement DOT2 NODE locations
Notes: Merged: https://.com/ruby/ruby/pull/11986
-rw-r--r--ast.c4
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_EVSTR:
return rb_ary_new_from_args(3,
location_new(nd_code_loc(node)),