Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Christoph Reichenbach
EDAP15-exercise-3
Commits
6dad80fa
Commit
6dad80fa
authored
Dec 13, 2020
by
Christoph Reichenbach
Browse files
Added missing functionality to SourceLocation
parent
2683d4fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/teal0/java/lang/common/SourceLocation.java
View file @
6dad80fa
...
...
@@ -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
+
"["
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment