mirror of
https://gitlab.com/camelot/kickc.git
synced 2025-01-10 12:31:09 +00:00
added a few toString()s
This commit is contained in:
parent
00463cd72f
commit
d38c26eeb5
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user