Revert "Add info about the end of range in scripting REPL compiler messages"
This reverts commit af251caf, because it breaks daemon/client
compatibility, which we'd like to keep as much as possible
This commit is contained in:
@@ -116,35 +116,4 @@ public class PsiDiagnosticUtils {
|
||||
return "(" + line + "," + column + ")";
|
||||
}
|
||||
}
|
||||
|
||||
public static final class LineAndColumnRange {
|
||||
|
||||
public static final LineAndColumnRange NONE = new LineAndColumnRange(LineAndColumn.NONE, LineAndColumn.NONE);
|
||||
|
||||
private final LineAndColumn start;
|
||||
private final LineAndColumn end;
|
||||
|
||||
public LineAndColumnRange(LineAndColumn start, LineAndColumn end) {
|
||||
this.start = start;
|
||||
this.end = end;
|
||||
}
|
||||
|
||||
public LineAndColumn getStart() {
|
||||
return start;
|
||||
}
|
||||
|
||||
public LineAndColumn getEnd() {
|
||||
return end;
|
||||
}
|
||||
|
||||
// NOTE: This method is used for presenting positions to the user
|
||||
@Override
|
||||
public String toString() {
|
||||
if (start.line == end.line) {
|
||||
return "(" + start.line + "," + start.column + "-" + end.column + ")";
|
||||
}
|
||||
|
||||
return start.toString() + " - " + end.toString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user