mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-01 10:55:12 +00:00
new lines fixed
This commit is contained in:
@@ -90,7 +90,7 @@ public class ForEachInAVM2Item extends LoopItem implements Block {
|
||||
}
|
||||
}
|
||||
writer.unindent();
|
||||
writer.append("}").newLine();
|
||||
writer.append("}");
|
||||
if (writer instanceof NulWriter) {
|
||||
LoopWithType loopOjb = ((NulWriter)writer).endLoop(loop.id);
|
||||
labelUsed = loopOjb.used;
|
||||
|
||||
@@ -90,7 +90,7 @@ public class ForInAVM2Item extends LoopItem implements Block {
|
||||
}
|
||||
}
|
||||
writer.unindent();
|
||||
writer.append("}").newLine();
|
||||
writer.append("}");
|
||||
if (writer instanceof NulWriter) {
|
||||
LoopWithType loopOjb = ((NulWriter)writer).endLoop(loop.id);
|
||||
labelUsed = loopOjb.used;
|
||||
|
||||
@@ -132,9 +132,9 @@ public abstract class Trait implements Serializable {
|
||||
writer.appendNoHilight("{").newLine();
|
||||
writer.indent();
|
||||
toString(parent, path, abcTags, abc, isStatic, exportMode, scriptIndex, classIndex, writer, fullyQualifiedNames, parallel);
|
||||
writer.newLine();
|
||||
writer.unindent();
|
||||
writer.appendNoHilight("}");
|
||||
writer.newLine();
|
||||
}
|
||||
return writer;
|
||||
}
|
||||
|
||||
@@ -405,16 +405,22 @@ public class TraitClass extends Trait implements TraitWithSlot {
|
||||
}
|
||||
}
|
||||
|
||||
boolean hasImport = false;
|
||||
for (String imp : imports) {
|
||||
if (!imp.startsWith(".")) {
|
||||
writer.appendNoHilight("import " + imp + ";").newLine();
|
||||
hasImport = true;
|
||||
}
|
||||
}
|
||||
writer.newLine();
|
||||
if (hasImport) {
|
||||
writer.newLine();
|
||||
}
|
||||
for (String us : uses) {
|
||||
writer.appendNoHilight("use namespace " + us + ";").newLine();
|
||||
}
|
||||
writer.newLine();
|
||||
if (uses.size() > 0) {
|
||||
writer.newLine();
|
||||
}
|
||||
|
||||
//class header
|
||||
String classHeader = abc.instance_info[class_info].getClassHeaderStr(abc, fullyQualifiedNames);
|
||||
@@ -488,6 +494,7 @@ public class TraitClass extends Trait implements TraitWithSlot {
|
||||
writer.unindent();
|
||||
writer.appendNoHilight("}"); // class
|
||||
writer.endClass();
|
||||
writer.newLine();
|
||||
return writer;
|
||||
}
|
||||
|
||||
|
||||
@@ -79,6 +79,7 @@ public class TraitFunction extends Trait implements TraitWithSlot {
|
||||
writer.newLine();
|
||||
writer.appendNoHilight("}");
|
||||
}
|
||||
writer.newLine();
|
||||
return writer;
|
||||
}
|
||||
|
||||
|
||||
@@ -97,6 +97,7 @@ public class TraitMethodGetterSetter extends Trait {
|
||||
}
|
||||
writer.appendNoHilight("}");
|
||||
}
|
||||
writer.newLine();
|
||||
return writer;
|
||||
}
|
||||
|
||||
|
||||
@@ -144,7 +144,7 @@ public class TraitSlotConst extends Trait implements TraitWithSlot {
|
||||
writer.appendNoHilight(" = ");
|
||||
getValueStr(parent, writer, abc, fullyQualifiedNames);
|
||||
}
|
||||
return writer.appendNoHilight(";");
|
||||
return writer.appendNoHilight(";").newLine();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -149,8 +149,6 @@ public class Traits implements Serializable {
|
||||
} else {
|
||||
writer.endTrait();
|
||||
}
|
||||
|
||||
writer.newLine();
|
||||
}
|
||||
return writer;
|
||||
}
|
||||
|
||||
@@ -92,7 +92,7 @@ public class ForInActionItem extends LoopActionItem implements Block {
|
||||
ti.toStringSemicoloned(writer, localData).newLine();
|
||||
}
|
||||
writer.unindent();
|
||||
writer.append("}").newLine();
|
||||
writer.append("}");
|
||||
if (writer instanceof NulWriter) {
|
||||
LoopWithType loopOjb = ((NulWriter)writer).endLoop(loop.id);
|
||||
labelUsed = loopOjb.used;
|
||||
|
||||
@@ -98,7 +98,7 @@ public class ForItem extends LoopItem implements Block {
|
||||
}
|
||||
}
|
||||
writer.unindent();
|
||||
writer.append("}").newLine();
|
||||
writer.append("}");
|
||||
if (writer instanceof NulWriter) {
|
||||
LoopWithType loopOjb = ((NulWriter)writer).endLoop(loop.id);
|
||||
labelUsed = loopOjb.used;
|
||||
|
||||
Reference in New Issue
Block a user