summaryrefslogtreecommitdiff
path: root/ast.c
diff options
context:
space:
mode:
authorydah <[email protected]>2024-09-03 17:53:55 +0900
committerYuichiro Kaneko <[email protected]>2024-09-03 21:15:12 +0900
commitaf143d8a749ae0ba0f394521dd46bea824a354fa ()
treed27074dc71ff379dde01cf6ed9992d1168bc0dff /ast.c
parentb7fa2dd0d0b7328f8f713b7cf0332d1e34c20fe4 (diff)
Implement UNDEF NODE keyword locations
Notes: Merged: https://.com/ruby/ruby/pull/11523
-rw-r--r--ast.c4
1 files changed, 4 insertions, 0 deletions
@@ -775,6 +775,10 @@ node_locations(VALUE ast_value, const NODE *node)
{
enum node_type type = nd_type(node);
switch (type) {
case NODE_UNLESS:
return rb_ary_new_from_args(4,
location_new(nd_code_loc(node)),