[core] Fix BaseAntlrNode::getTextRegion

This commit is contained in:
Andreas Dangel
2023-12-16 19:12:56 +01:00
parent b059ecb98a
commit 7424491ea8

View File

@ -72,7 +72,7 @@ public abstract class BaseAntlrNode<A extends AntlrToPmdParseTreeAdapter<N>, N e
@Override
public TextRegion getTextRegion() {
return TextRegion.fromBothOffsets(getFirstAntlrToken().getStartIndex(),
getFirstAntlrToken().getStopIndex());
getLastAntlrToken().getStopIndex() + 1);
}
void setIndexInParent(int indexInParent) {