summaryrefslogtreecommitdiff
path: root/ast.c
diff options
context:
space:
mode:
authorydah <[email protected]>2024-11-03 00:52:14 +0900
committerYudai Takada <[email protected]>2025-01-04 20:27:40 +0900
commitc936699431477a565b9e4036bc3b1fc186ac9918 (patch)
treec346ec8a89382c85b3ec6127be58ea329173f325 /ast.c
parent24653430cde5f7abb895d1a009ebf4d8cfc39519 (diff)
Implement FLIP3 NODE locations
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/11986
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 13119e66d9..c3e2df2a78 100644
--- a/ast.c
+++ b/ast.c
@@ -824,6 +824,10 @@ node_locations(VALUE ast_value, const NODE *node)
return rb_ary_new_from_args(2,
location_new(nd_code_loc(node)),
location_new(&RNODE_FLIP2(node)->operator_loc));
+ case NODE_FLIP3:
+ return rb_ary_new_from_args(2,
+ location_new(nd_code_loc(node)),
+ location_new(&RNODE_FLIP3(node)->operator_loc));
case NODE_LAMBDA:
return rb_ary_new_from_args(4,
location_new(nd_code_loc(node)),