PossibleFix(Tree tree) { this.tree = tree; DiagnosticPosition position = (DiagnosticPosition) tree; this.startPosition = position.getStartPosition(); this.endPosition = position.getEndPosition(compilationUnit.endPositions); this.trace = new RuntimeException(); }
int startPos = pos.getStartPosition(); int preferredPos = pos.getPreferredPosition(); int endPos = pos.getEndPosition(endPosTable);
protected int getIntEndPosition() { return (position == null ? Position.NOPOS : position.getEndPosition(source.getEndPosTable())); }
protected int getIntEndPosition() { return (position == null ? Position.NOPOS : position.getEndPosition(source.getEndPosTable())); }
protected int getIntEndPosition() { return (position == null ? Position.NOPOS : position.getEndPosition(source.getEndPosTable())); }
protected int getIntEndPosition() { return (position == null ? Position.NOPOS : position.getEndPosition(source.getEndPosTable())); }
@Override public Replacement getReplacement(EndPosTable endPositions) { return Replacement.create( original.getStartPosition(), original.getEndPosition(endPositions), replacement); } }
@Override protected int getInsertionIndex(EndPosTable endPositions) { return position.getEndPosition(endPositions); } }
@Override protected int getInsertionIndex(EndPosTable endPositions) { return position.getEndPosition(endPositions); } }
@Override public Replacement getReplacement(EndPosTable endPositions) { return Replacement.create( original.getStartPosition(), original.getEndPosition(endPositions), replacement); } }