summaryrefslogtreecommitdiff
path: root/ast.c
diff options
context:
space:
mode:
authorydah <[email protected]>2024-09-03 16:20:52 +0900
committerYuichiro Kaneko <[email protected]>2024-09-04 14:36:35 +0900
commitab18b1b4f55d3d06e6e040d755e75b5b447198f3 (patch)
tree52e29c4b329cb017e6dbe2ea4c0347ba8b06fcee /ast.c
parent37d7ae06afb03ae5508bfd81033961559886bd6b (diff)
Implement VALIAS NODE keyword locations
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/11531
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 d6d3e11d60..12366dd432 100644
--- a/ast.c
+++ b/ast.c
@@ -789,6 +789,10 @@ node_locations(VALUE ast_value, const NODE *node)
location_new(&RNODE_UNLESS(node)->keyword_loc),
location_new(&RNODE_UNLESS(node)->then_keyword_loc),
location_new(&RNODE_UNLESS(node)->end_keyword_loc));
+ case NODE_VALIAS:
+ return rb_ary_new_from_args(2,
+ location_new(nd_code_loc(node)),
+ location_new(&RNODE_VALIAS(node)->keyword_loc));
case NODE_ARGS_AUX:
case NODE_LAST:
break;