diff options
author | ydah <[email protected]> | 2024-09-24 20:05:12 +0900 |
---|---|---|
committer | Yuichiro Kaneko <[email protected]> | 2024-09-30 18:04:41 +0900 |
commit | 044e57ed7c34bfe2cea6e7dcc685cc0a4050c86f (patch) | |
tree | 8860acb22cee3b0882e94ed6ca7da976daef40b7 /ast.c | |
parent | 239c1c621e92f519498e421cf825f44667c0e56c (diff) |
Implement SPLAT NODE keyword locations
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/11673
Diffstat (limited to 'ast.c')
-rw-r--r-- | ast.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -836,6 +836,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_RETURN(node)->keyword_loc)); + case NODE_SPLAT: + return rb_ary_new_from_args(2, + location_new(nd_code_loc(node)), + location_new(&RNODE_SPLAT(node)->operator_loc)); case NODE_UNDEF: return rb_ary_new_from_args(2, location_new(nd_code_loc(node)), |