mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-04 15:14:49 +00:00
Issue #89 AS3: bracket in property name lead to missing dot
This commit is contained in:
@@ -86,26 +86,16 @@ public abstract class TreeItem extends GraphTargetItem {
|
||||
return propertyName.toString(Helper.toList(constants, localRegNames, fullyQualifiedNames));
|
||||
}
|
||||
if (propertyName instanceof FullMultinameTreeItem) {
|
||||
if (((FullMultinameTreeItem) propertyName).isRuntime()) {
|
||||
return joinProperty(obStr, propertyName.toString(Helper.toList(constants, localRegNames, fullyQualifiedNames)));
|
||||
if (((FullMultinameTreeItem) propertyName).name != null) {
|
||||
return obStr + propertyName.toString(Helper.toList(constants, localRegNames, fullyQualifiedNames));
|
||||
} else {
|
||||
return joinProperty(obStr, ((FullMultinameTreeItem) propertyName).toString(constants, localRegNames, fullyQualifiedNames));
|
||||
return obStr + "." + propertyName.toString(Helper.toList(constants, localRegNames, fullyQualifiedNames));
|
||||
}
|
||||
} else {
|
||||
return obStr + "[" + propertyName.toString(Helper.toList(constants, localRegNames, fullyQualifiedNames)) + "]";
|
||||
}
|
||||
}
|
||||
|
||||
private String joinProperty(String prefix, String name) {
|
||||
if (prefix.endsWith(".")) {
|
||||
prefix = prefix.substring(0, prefix.length() - 1);
|
||||
}
|
||||
if (!Highlighting.stripHilights(name).startsWith("[")) {
|
||||
return prefix + "." + name;
|
||||
}
|
||||
return prefix + name;
|
||||
}
|
||||
|
||||
public static String localRegName(HashMap<Integer, String> localRegNames, int reg) {
|
||||
if (localRegNames.containsKey(reg)) {
|
||||
return localRegNames.get(reg);
|
||||
|
||||
Reference in New Issue
Block a user