Fixed tests - trait names as FQN

This commit is contained in:
Jindra Petřík
2023-09-23 16:27:30 +02:00
parent 72b64f266d
commit 9947cb0b88
3 changed files with 4 additions and 2 deletions

View File

@@ -99,7 +99,7 @@ public class TraitMethodGetterSetter extends Trait {
}
writer.hilightSpecial("function " + addKind, HighlightSpecialType.TRAIT_TYPE);
writer.hilightSpecial(getName(abc).getName(abc.constants, fullyQualifiedNames, false, true), HighlightSpecialType.TRAIT_NAME);
writer.hilightSpecial(getName(abc).getName(abc.constants, new ArrayList<>(), false, true), HighlightSpecialType.TRAIT_NAME);
writer.appendNoHilight("(");
abc.method_info.get(method_info).getParamStr(writer, abc.constants, body, abc, fullyQualifiedNames);
writer.appendNoHilight(") : ");

View File

@@ -106,7 +106,7 @@ public class TraitSlotConst extends Trait implements TraitWithSlot {
slotconst = "namespace";
}
writer.hilightSpecial(slotconst + " ", HighlightSpecialType.TRAIT_TYPE);
writer.hilightSpecial(getName(abc).getName(abc.constants, fullyQualifiedNames, false, true), HighlightSpecialType.TRAIT_NAME);
writer.hilightSpecial(getName(abc).getName(abc.constants, new ArrayList<>(), false, true), HighlightSpecialType.TRAIT_NAME);
writer.hilightSpecial(typeStr, HighlightSpecialType.TRAIT_TYPE_NAME);
return writer;
}

View File

@@ -186,6 +186,8 @@ public class DependencyParser {
} */
}
for (int k = 0; k < ins.definition.operands.length; k++) {
//this should probably handle only some subset of multiname instructions,
// like findproperty, findpropstrict, constructprop, not simple getproperty
if (ins.definition.operands[k] == AVM2Code.DAT_MULTINAME_INDEX) {
int m = ins.operands[k];
if (m < abc.constants.getMultinameCount()) {