Files
sbt/internal/util-interface/src/main/java/xsbti/Position.java
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

55 lines
1.0 KiB
Java
Raw Normal View History

2019-12-07 17:14:42 -08:00
/*
* sbt
2023-06-20 13:42:07 +02:00
* Copyright 2023, Scala center
* Copyright 2011 - 2022, Lightbend, Inc.
2019-12-07 17:14:42 -08:00
* Copyright 2008 - 2010, Mark Harrah
* Licensed under Apache License 2.0 (see LICENSE)
2010-10-23 16:34:22 -04:00
*/
2019-12-07 17:14:42 -08:00
2010-10-23 16:34:22 -04:00
package xsbti;
2017-01-25 20:42:15 -05:00
import java.io.File;
import java.util.Optional;
2020-01-14 14:19:42 -08:00
public interface Position {
Optional<Integer> line();
String lineContent();
Optional<Integer> offset();
// pointer to the column position of the error/warning
Optional<Integer> pointer();
Optional<String> pointerSpace();
Optional<String> sourcePath();
Optional<File> sourceFile();
// Default values to avoid breaking binary compatibility
default Optional<Integer> startOffset() {
return Optional.empty();
}
default Optional<Integer> endOffset() {
return Optional.empty();
}
default Optional<Integer> startLine() {
return Optional.empty();
}
default Optional<Integer> startColumn() {
return Optional.empty();
}
default Optional<Integer> endLine() {
return Optional.empty();
}
default Optional<Integer> endColumn() {
return Optional.empty();
}
2017-01-25 20:42:15 -05:00
}