diff options
author | ydah <[email protected]> | 2024-09-27 23:55:48 +0900 |
---|---|---|
committer | Yudai Takada <[email protected]> | 2025-01-03 23:03:04 +0900 |
commit | c22b0598b0dd197a49212e06cfc91e4a3f2e058c (patch) | |
tree | 995b0050ace7bea2cdad77398d293802c57bc3bb /ast.c | |
parent | 5cc4240dda72582456dc271ec580178d070197a9 (diff) |
Implement SUPER NODE locations
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/11712
Diffstat (limited to 'ast.c')
-rw-r--r-- | ast.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -846,6 +846,12 @@ node_locations(VALUE ast_value, const NODE *node) return rb_ary_new_from_args(2, location_new(nd_code_loc(node)), location_new(&RNODE_SPLAT(node)->operator_loc)); + case NODE_SUPER: + return rb_ary_new_from_args(4, + location_new(nd_code_loc(node)), + location_new(&RNODE_SUPER(node)->keyword_loc), + location_new(&RNODE_SUPER(node)->lparen_loc), + location_new(&RNODE_SUPER(node)->rparen_loc)); case NODE_UNDEF: return rb_ary_new_from_args(2, location_new(nd_code_loc(node)), |