mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
Implement OP_ASGN1 NODE locations
This commit is contained in:
parent
a70adce1ce
commit
eff16d9302
Notes:
git
2024-09-27 09:20:20 +00:00
5 changed files with 37 additions and 9 deletions
7
ast.c
7
ast.c
|
@ -815,6 +815,13 @@ node_locations(VALUE ast_value, const NODE *node)
|
|||
return rb_ary_new_from_args(2,
|
||||
location_new(nd_code_loc(node)),
|
||||
location_new(&RNODE_OR(node)->operator_loc));
|
||||
case NODE_OP_ASGN1:
|
||||
return rb_ary_new_from_args(5,
|
||||
location_new(nd_code_loc(node)),
|
||||
location_new(&RNODE_OP_ASGN1(node)->call_operator_loc),
|
||||
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_REDO:
|
||||
return rb_ary_new_from_args(2,
|
||||
location_new(nd_code_loc(node)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue