mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-30 20:27:44 +00:00
AS1/2 operator - do not use brackets when not neccessary
This commit is contained in:
@@ -58,14 +58,16 @@ public class DeleteActionItem extends ActionItem {
|
||||
writer.append("delete ");
|
||||
if (object != null) {
|
||||
object.toStringNoQuotes(writer, localData);
|
||||
/*if (IdentifiersDeobfuscation.isValidName(false, propertyName.toStringNoQuotes(localData))) {
|
||||
if ((propertyName instanceof DirectValueActionItem) && ((DirectValueActionItem) propertyName).isString()
|
||||
&& (IdentifiersDeobfuscation.isValidName(false, propertyName.toStringNoQuotes(localData)))) {
|
||||
writer.append(".");
|
||||
propertyName.toStringNoQuotes(writer, localData);
|
||||
} else {*/
|
||||
}
|
||||
else {
|
||||
writer.append("[");
|
||||
propertyName.toString(writer, localData);
|
||||
writer.append("]");
|
||||
//}
|
||||
}
|
||||
return writer;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user