end ; trait only in p-code

This commit is contained in:
Jindra Petřík
2021-02-08 20:15:19 +01:00
parent e86f19c931
commit b3ad4efeda
@@ -123,7 +123,7 @@ public class ASMSourceEditorPane extends DebuggableEditorPane implements CaretLi
}
MethodBody body = abc.bodies.get(bodyIndex);
abc.bodies.get(bodyIndex).getCode().toASMSource(abc, abc.constants, abc.method_info.get(body.method_info), body, exportMode, writer);
if (trait != null) {
if (trait != null && exportMode != ScriptExportMode.AS && exportMode != ScriptExportMode.AS_METHOD_STUBS) {
writer.unindent().appendNoHilight("end ; trait").newLine();
}
return new HighlightedText(writer);