mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-17 20:38:08 +00:00
AS3: TypeNames fix (* type)
This commit is contained in:
@@ -49,9 +49,8 @@ public class ApplyTypeIns extends InstructionDefinition {
|
||||
int argCount = ins.operands[0];
|
||||
List<TreeItem> params = new ArrayList<TreeItem>();
|
||||
for (int i = 0; i < argCount; i++) {
|
||||
params.add(stack.pop());
|
||||
params.add(0,stack.pop());
|
||||
}
|
||||
Collections.reverse(params);
|
||||
stack.push(new ApplyTypeTreeItem(ins, stack.pop(), params));
|
||||
}
|
||||
|
||||
|
||||
@@ -41,7 +41,12 @@ public class ApplyTypeTreeItem extends TreeItem {
|
||||
if (i > 0) {
|
||||
ret += hilight(",");
|
||||
}
|
||||
ret += params.get(i).toString(constants, localRegNames, fullyQualifiedNames);
|
||||
TreeItem p = params.get(i);
|
||||
if (p instanceof NullTreeItem) {
|
||||
ret += "*";
|
||||
} else {
|
||||
ret += p.toString(constants, localRegNames, fullyQualifiedNames);
|
||||
}
|
||||
}
|
||||
ret += hilight(">");
|
||||
}
|
||||
|
||||
@@ -181,7 +181,9 @@ public class Multiname {
|
||||
if (i > 0) {
|
||||
typeNameStr += ",";
|
||||
}
|
||||
if (params.get(i) != 0) { //What does value 0 mean?
|
||||
if (params.get(i) == 0) {
|
||||
typeNameStr += "*";
|
||||
}else{
|
||||
typeNameStr += constants.constant_multiname[params.get(i)].getName(constants, fullyQualifiedNames);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user