diff options
author | ydah <[email protected]> | 2024-09-27 02:32:27 +0900 |
---|---|---|
committer | Yuichiro Kaneko <[email protected]> | 2024-09-28 20:53:09 +0900 |
commit | 8f678d69895d8b0562a52925a1840b698e021f56 (patch) | |
tree | 2bd7e499963b8403646b9940b1f0ff509c7bb96c /ast.c | |
parent | 027ef60500c43fecbd4784cf24a99f6955606567 (diff) |
Implement OP_ASGN2 NODE locations
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/11702
Diffstat (limited to 'ast.c')
-rw-r--r-- | ast.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -822,6 +822,12 @@ node_locations(VALUE ast_value, const NODE *node) location_new(&RNODE_OP_ASGN1(node)->opening_loc), location_new(&RNODE_OP_ASGN1(node)->closing_loc), location_new(&RNODE_OP_ASGN1(node)->binary_operator_loc)); + case NODE_OP_ASGN2: + return rb_ary_new_from_args(4, + location_new(nd_code_loc(node)), + location_new(&RNODE_OP_ASGN2(node)->call_operator_loc), + location_new(&RNODE_OP_ASGN2(node)->message_loc), + location_new(&RNODE_OP_ASGN2(node)->binary_operator_loc)); case NODE_REDO: return rb_ary_new_from_args(2, location_new(nd_code_loc(node)), |