AS3 p-code more RAbcDasm like (parenthesis after True/False/Undefined/Null trait kinds)

AS3 method trait p-code indentation
AS3 editation of body traits (slot/const only)
This commit is contained in:
Jindra Petřík
2021-02-08 20:15:19 +01:00
parent ddd2d5697b
commit 7f6181360f
13 changed files with 128 additions and 77 deletions
@@ -122,9 +122,9 @@ public class ASMSourceEditorPane extends DebuggableEditorPane implements CaretLi
trait.convertTraitHeader(abc, writer);
}
MethodBody body = abc.bodies.get(bodyIndex);
abc.bodies.get(bodyIndex).getCode().toASMSource(abc.constants, abc.method_info.get(body.method_info), body, exportMode, writer);
abc.bodies.get(bodyIndex).getCode().toASMSource(abc, abc.constants, abc.method_info.get(body.method_info), body, exportMode, writer);
if (trait != null) {
writer.appendNoHilight("end ; trait").newLine();
writer.unindent().appendNoHilight("end ; trait").newLine();
}
return new HighlightedText(writer);
}