1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-11-20 02:32:36 +00:00

Fixed Variable.toString()

This commit is contained in:
jespergravgaard 2019-12-22 23:22:02 +01:00
parent f1a897e37b
commit 593a8428a0

View File

@ -553,9 +553,9 @@ public class Variable implements Symbol {
public String toString(Program program) {
return new StringBuilder()
.append("(")
.append((initValue != null) ? "const " : "")
.append(isKindConstant() ? "const " : "")
.append(getType().getTypeName())
.append((initValue == null && isKindIntermediate()) ? "~" : "")
.append(isKindIntermediate() ? "~" : "")
.append(") ")
.append(getFullName()).toString();
}