mirror of
https://gitlab.com/camelot/kickc.git
synced 2025-08-09 04:25:12 +00:00
added a few toString()s
This commit is contained in:
@@ -37,4 +37,10 @@ public class AsmComment implements AsmLine {
|
||||
return "// "+comment;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getAsm();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@@ -48,4 +48,9 @@ public class AsmInstruction implements AsmLine {
|
||||
return type.getAsm(parameter);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getAsm();
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -37,4 +37,10 @@ public class AsmLabel implements AsmLine {
|
||||
public String getAsm() {
|
||||
return label+":";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getAsm();
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -90,4 +90,9 @@ public class SymbolRef implements Value {
|
||||
return fullName.substring(0, lastScopeIdx);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getFullName();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user