mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-21 09:16:27 +00:00
Fixed tests - trait names as FQN
This commit is contained in:
@@ -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(") : ");
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user