mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-05 11:54:54 +00:00
Fixed: Script/Class initializers order of assignment
Changed: Compound script has slot/const traits inside main script initializer
This commit is contained in:
@@ -3872,12 +3872,21 @@ public class Graph {
|
||||
* @throws InterruptedException On interrupt
|
||||
*/
|
||||
public static GraphTextWriter graphToString(List<GraphTargetItem> tree, GraphTextWriter writer, LocalData localData) throws InterruptedException {
|
||||
boolean lastNewLine = false;
|
||||
for (GraphTargetItem ti : tree) {
|
||||
if (!ti.isEmpty()) {
|
||||
ti.toStringSemicoloned(writer, localData);
|
||||
if (ti.hasSingleNewLineAround() && !lastNewLine) {
|
||||
writer.newLine();
|
||||
}
|
||||
ti.toStringSemicoloned(writer, localData);
|
||||
if (!ti.handlesNewLine()) {
|
||||
writer.newLine();
|
||||
}
|
||||
lastNewLine = false;
|
||||
if (ti.hasSingleNewLineAround()) {
|
||||
writer.newLine();
|
||||
lastNewLine = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return writer;
|
||||
|
||||
Reference in New Issue
Block a user