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:
parent
092a694a3f
commit
5d9f1d734a
|
@ -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() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue