File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1488,16 +1488,16 @@ def visit_constant_path_write_node(node)
1488
1488
# Visit a constant path that is part of a write node.
1489
1489
private def visit_constant_path_write_node_target ( node )
1490
1490
if node . parent . nil?
1491
- bounds ( node . child . location )
1492
- child = on_const ( node . child . name . to_s )
1491
+ bounds ( node . name_loc )
1492
+ child = on_const ( node . name . to_s )
1493
1493
1494
1494
bounds ( node . location )
1495
1495
on_top_const_field ( child )
1496
1496
else
1497
1497
parent = visit ( node . parent )
1498
1498
1499
- bounds ( node . child . location )
1500
- child = on_const ( node . child . name . to_s )
1499
+ bounds ( node . name_loc )
1500
+ child = on_const ( node . name . to_s )
1501
1501
1502
1502
bounds ( node . location )
1503
1503
on_const_path_field ( parent , child )
You can’t perform that action at this time.
0 commit comments