diff options
author | ydah <[email protected]> | 2024-11-03 01:29:43 +0900 |
---|---|---|
committer | Yudai Takada <[email protected]> | 2025-06-15 22:37:20 +0900 |
commit | c584790bde83bfd6a01ebc9301f2fe00e4986ad7 (patch) | |
tree | 24bcc36fa42d38ce96e8dfd5baffdcb63e3dd1b8 /ast.c | |
parent | 2d96400c26bbba16233aa8d7afce297804400a2a (diff) |
Implement COLON2 NODE locations
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/11987
Diffstat (limited to 'ast.c')
-rw-r--r-- | ast.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -812,6 +812,11 @@ node_locations(VALUE ast_value, const NODE *node) location_new(&RNODE_CLASS(node)->class_keyword_loc), location_new(&RNODE_CLASS(node)->inheritance_operator_loc), location_new(&RNODE_CLASS(node)->end_keyword_loc)); + case NODE_COLON2: + return rb_ary_new_from_args(3, + location_new(nd_code_loc(node)), + location_new(&RNODE_COLON2(node)->delimiter_loc), + location_new(&RNODE_COLON2(node)->name_loc)); case NODE_DOT2: return rb_ary_new_from_args(2, location_new(nd_code_loc(node)), |