mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-27 00:00:59 +00:00
Added AS3 P-code editing class trait
This commit is contained in:
+2
-2
@@ -169,7 +169,6 @@ public class ClassActionItem extends ActionItem implements Block {
|
||||
makePrintObfuscated(im);
|
||||
}
|
||||
|
||||
writer.startClass(className.toStringNoQuotes(localData));
|
||||
writer.append("class ");
|
||||
className.toStringNoQuotes(writer, localData);
|
||||
if (extendsOp != null) {
|
||||
@@ -188,6 +187,7 @@ public class ClassActionItem extends ActionItem implements Block {
|
||||
}
|
||||
}
|
||||
writer.startBlock();
|
||||
writer.startClass(className.toStringNoQuotes(localData));
|
||||
|
||||
/*if (constructor != null) {
|
||||
constructor.toString(writer, localData).newLine();
|
||||
@@ -232,8 +232,8 @@ public class ClassActionItem extends ActionItem implements Block {
|
||||
writer.append(v);
|
||||
writer.append(";").newLine();
|
||||
}
|
||||
writer.endBlock();
|
||||
writer.endClass();
|
||||
writer.endBlock();
|
||||
return writer;
|
||||
}
|
||||
|
||||
|
||||
+4
-2
@@ -48,7 +48,6 @@ public class InterfaceActionItem extends ActionItem {
|
||||
|
||||
@Override
|
||||
public GraphTextWriter appendTo(GraphTextWriter writer, LocalData localData) throws InterruptedException {
|
||||
writer.startClass(name.toStringNoQuotes(localData));
|
||||
writer.append("interface ");
|
||||
name.toStringNoQuotes(writer, localData);
|
||||
boolean first = true;
|
||||
@@ -62,7 +61,10 @@ public class InterfaceActionItem extends ActionItem {
|
||||
first = false;
|
||||
Action.getWithoutGlobal(ti).toStringNoQuotes(writer, localData);
|
||||
}
|
||||
return writer.startBlock().endBlock().endClass();
|
||||
writer.startBlock();
|
||||
writer.startClass(name.toStringNoQuotes(localData));
|
||||
writer.endClass();
|
||||
return writer.endBlock();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user