From a2243ee48bf6d68b0e5c713b5e7dd6bf3b57f62c Mon Sep 17 00:00:00 2001 From: ydah Date: Tue, 3 Sep 2024 16:12:30 +0900 Subject: Implement ALIAS NODE keyword locations --- ast.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ast.c') diff --git a/ast.c b/ast.c index fd6a6dea89..d6d3e11d60 100644 --- a/ast.c +++ b/ast.c @@ -775,6 +775,10 @@ node_locations(VALUE ast_value, const NODE *node) { enum node_type type = nd_type(node); switch (type) { + case NODE_ALIAS: + return rb_ary_new_from_args(2, + location_new(nd_code_loc(node)), + location_new(&RNODE_ALIAS(node)->keyword_loc)); case NODE_UNDEF: return rb_ary_new_from_args(2, location_new(nd_code_loc(node)), -- cgit v1.2.3