Fixed: AS3 slow decompilation caused by ambiguios namespace detection

This commit is contained in:
Jindra Petřík
2026-02-23 09:21:44 +01:00
parent 87f94768a0
commit ba7c762537
3 changed files with 66 additions and 79 deletions

View File

@@ -231,8 +231,9 @@ public class FullMultinameAVM2Item extends AVM2Item {
String identifier = IdentifiersDeobfuscation.printIdentifier(localData.abc.getSwf(), localData.usedDeobfuscations, true, nsname);
writer.hilightSpecial(identifier, HighlightSpecialType.TYPE_NAME, customNs.toRawString());
writer.appendNoHilight("::");
} else {
if (parentType instanceof TypeItem) { //not ApplyTypeAVM2Item or UnboundedTypeItem
} else {
//FIXME!! This is slow, should be moved to indexing
if (false && parentType instanceof TypeItem) { //not ApplyTypeAVM2Item or UnboundedTypeItem
String rawName = constants.getMultiname(multinameIndex).getName(localData.usedDeobfuscations, localData.abc, localData.abc.constants, fullyQualifiedNames, true, true);
List<AbcIndexing.PropertyDef> defs = new ArrayList<>();
List<Boolean> staticRef = new ArrayList<>();