diff options
author | ydah <[email protected]> | 2024-11-03 00:31:29 +0900 |
---|---|---|
committer | Yudai Takada <[email protected]> | 2025-01-04 20:27:40 +0900 |
commit | 61c4907458f00841f28feb2daeb508af8c494d51 (patch) | |
tree | 7a3f9bb20193711d45070c2898e54c3126578a0e /ast.c | |
parent | 88da6856a3f5cc6a84a8d1909f56952c605ef0dc (diff) |
Implement DOT3 NODE locations
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/11986
Diffstat (limited to 'ast.c')
-rw-r--r-- | ast.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -811,6 +811,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_DOT2(node)->operator_loc)); + case NODE_DOT3: + return rb_ary_new_from_args(2, + location_new(nd_code_loc(node)), + location_new(&RNODE_DOT3(node)->operator_loc)); case NODE_EVSTR: return rb_ary_new_from_args(3, location_new(nd_code_loc(node)), |