Full disclosure: this isn't really a 'bug' per say, it's more of a best practice thing. The only reason I'm making this change is because I'm working on a parser in my spare time that will most likely never see the light of day, and these accessors are causing me problems because both the line and column fields are private and need to be accessed through the appropriate accessor.

This commit is contained in:
markiantorno 2020-03-28 16:26:03 -04:00 committed by James Agnew
parent 092a694a3f
commit 5d9f1d734a
5 changed files with 5 additions and 5 deletions

View File

@ -646,7 +646,7 @@ public class ExpressionNode {
}
private String location() {
return Integer.toString(start.line)+", "+Integer.toString(start.column);
return Integer.toString(start.getLine())+", "+Integer.toString(start.getColumn());
}
public TypeDetails getTypes() {

View File

@ -630,7 +630,7 @@ public class ExpressionNode {
}
private String location() {
return Integer.toString(start.line)+", "+Integer.toString(start.column);
return Integer.toString(start.getLine())+", "+Integer.toString(start.getColumn());
}
public TypeDetails getTypes() {

View File

@ -554,7 +554,7 @@ public class ExpressionNode {
}
private String location() {
return Integer.toString(start.line)+", "+Integer.toString(start.column);
return Integer.toString(start.getLine())+", "+Integer.toString(start.getColumn());
}
public TypeDetails getTypes() {

View File

@ -633,7 +633,7 @@ public class ExpressionNode {
}
private String location() {
return Integer.toString(start.line)+", "+Integer.toString(start.column);
return Integer.toString(start.getLine())+", "+Integer.toString(start.getColumn());
}
public TypeDetails getTypes() {

View File

@ -634,7 +634,7 @@ public class ExpressionNode {
}
private String location() {
return Integer.toString(start.line)+", "+Integer.toString(start.column);
return Integer.toString(start.getLine())+", "+Integer.toString(start.getColumn());
}
public TypeDetails getTypes() {