-
Type:
Enhancement
-
Resolution: Unresolved
-
Priority:
P4
-
None
-
Affects Version/s: None
-
Component/s: tools
End positions are only stored for some tree kinds. There is logic in TreeInfo.getEndPos that looks for an end position on an enclosing node, for trees that don't have their own end position.
After the changes inJDK-8372948 end positions are stored directly in a field that is present in all tree kinds, instead of in a separate map, so it would be possible to store end positions directly on more or all trees, and avoid the logic in TreeInfo.getEndPos.
This bug tracks investigating that cleanup, and removing the switch from TreeInfo.getEndPos. This idea was proposed in the review thread forJDK-8372948.
After the changes in
This bug tracks investigating that cleanup, and removing the switch from TreeInfo.getEndPos. This idea was proposed in the review thread for