mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
js: emit non-breaking whitespace before function arrow in remaining places
This commit is contained in:
parent
9768a86378
commit
d0707e5355
|
@ -127,7 +127,7 @@ public class TemplatingAstWriter extends AstWriter {
|
|||
if (classInitializerInfo == null || classInitializerInfo.isDynamicInitializer(className)) {
|
||||
writer.appendClassInit(className);
|
||||
} else {
|
||||
writer.append("(()").ws().append("=>").ws().append("{})");
|
||||
writer.append("(()").sameLineWs().append("=>").ws().append("{})");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -64,7 +64,7 @@ class JSAliasRenderer implements RendererListener, MethodContributor {
|
|||
|
||||
writer.startVariableDeclaration().appendFunction("$rt_jso_marker")
|
||||
.appendGlobal("Symbol").append("('jsoClass')").endDeclaration();
|
||||
writer.append("(()").ws().append("=>").ws().append("{").softNewLine().indent();
|
||||
writer.append("(()").sameLineWs().append("=>").ws().append("{").softNewLine().indent();
|
||||
writer.append("let c;").softNewLine();
|
||||
var exportedNamesByClass = new HashMap<String, String>();
|
||||
for (var className : classSource.getClassNames()) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user