Commit 6dad80fa authored by Christoph Reichenbach's avatar Christoph Reichenbach
Browse files

Added missing functionality to SourceLocation

parent 2683d4fb
......@@ -35,6 +35,31 @@ public class SourceLocation implements Comparable<SourceLocation> {
out.print(startLine + ":" + startColumn + "," + endLine + ":" + endColumn);
}
public boolean
isReal() {
return !(this == UNKNOWN || this == BUILTIN);
}
public int
getStartLine() {
return this.startLine;
}
public int
getStartColumn() {
return this.startColumn;
}
public int
getEndLine() {
return this.endLine;
}
public int
getEndColumn() {
return this.endColumn;
}
@Override
public String toString() {
return this.file + "["
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment