mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-17 22:38:36 +00:00
small bugfix
This commit is contained in:
@@ -41,7 +41,7 @@ public class ConstructPropAVM2Item extends AVM2Item {
|
||||
hilight("new ", writer);
|
||||
int idx = writer.getLength();
|
||||
object.toString(writer, constants, localRegNames, fullyQualifiedNames);
|
||||
if (idx > writer.getLength()) {
|
||||
if (idx < writer.getLength()) {
|
||||
hilight(".", writer);
|
||||
}
|
||||
propertyName.toString(writer, constants, localRegNames, fullyQualifiedNames);
|
||||
|
||||
@@ -81,18 +81,20 @@ public class IfItem extends GraphTargetItem implements Block {
|
||||
ti.toStringSemicoloned(writer, localData).appendNewLine();
|
||||
}
|
||||
}
|
||||
hilight(Graph.INDENTCLOSE + "\r\n", writer);
|
||||
hilight(Graph.INDENTCLOSE, writer).appendNewLine();
|
||||
hilight("}", writer);
|
||||
if (elseBranch.size() > 0) {
|
||||
hilight("\r\nelse\r\n", writer);
|
||||
hilight("{\r\n" + Graph.INDENTOPEN + "\r\n", writer);
|
||||
writer.appendNewLine();
|
||||
hilight("else", writer).appendNewLine();
|
||||
hilight("{", writer).appendNewLine();
|
||||
hilight(Graph.INDENTOPEN, writer).appendNewLine();
|
||||
for (GraphTargetItem ti : elseBranch) {
|
||||
if (!ti.isEmpty()) {
|
||||
ti.toStringSemicoloned(writer, localData);
|
||||
hilight("\r\n", writer);
|
||||
ti.toStringSemicoloned(writer, localData).appendNewLine();
|
||||
}
|
||||
}
|
||||
hilight(Graph.INDENTCLOSE + "\r\n}", writer);
|
||||
hilight(Graph.INDENTCLOSE, writer).appendNewLine();
|
||||
hilight("}", writer);
|
||||
}
|
||||
return writer;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user