Fixed AS1/2 - delete operator correct localreg names

This commit is contained in:
Jindra Petřík
2021-11-22 19:03:31 +01:00
parent 6e68d4f913
commit 6978764bef

View File

@@ -124,6 +124,11 @@ public class DirectValueActionItem extends ActionItem implements SimpleValue {
if (value instanceof ConstantIndex) {
return this.constants.get(((ConstantIndex) value).index);
}
if (value instanceof RegisterNumber) {
return ((RegisterNumber) value).translate();
}
return value.toString();
}
@@ -145,6 +150,11 @@ public class DirectValueActionItem extends ActionItem implements SimpleValue {
if (value instanceof ConstantIndex) {
return writer.append(this.constants.get(((ConstantIndex) value).index));
}
if (value instanceof RegisterNumber) {
return writer.append(((RegisterNumber) value).translate());
}
return writer.append(value.toString());
}