Class TemplatingAstWriter
java.lang.Object
org.teavm.backend.javascript.rendering.AstWriter
org.teavm.backend.javascript.templating.TemplatingAstWriter
-
Field Summary
Fields inherited from class org.teavm.backend.javascript.rendering.AstWriter
PRECEDENCE_ADD, PRECEDENCE_AND, PRECEDENCE_ASSIGN, PRECEDENCE_BITWISE_AND, PRECEDENCE_BITWISE_OR, PRECEDENCE_BITWISE_XOR, PRECEDENCE_COMMA, PRECEDENCE_COND, PRECEDENCE_EQUALITY, PRECEDENCE_FUNCTION, PRECEDENCE_MEMBER, PRECEDENCE_MUL, PRECEDENCE_OR, PRECEDENCE_POSTFIX, PRECEDENCE_PREFIX, PRECEDENCE_RELATION, PRECEDENCE_SHIFT, rootScope, writer -
Constructor Summary
ConstructorsConstructorDescriptionTemplatingAstWriter(SourceWriter writer, ClassInitializerInfo classInitializerInfo, boolean topLevelOutput) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanintrinsic(org.mozilla.javascript.ast.FunctionCall node, int precedence) booleanprotected voidprint(org.mozilla.javascript.ast.ElementGet node) voidprint(org.mozilla.javascript.ast.PropertyGet node) voidsetFragment(String name, SourceFragment fragment) Methods inherited from class org.teavm.backend.javascript.rendering.AstWriter
declareName, declareNameEmitter, enterScope, hoist, includeInScope, inFunction, isInTopLevelScope, isTopLevelIdentifier, leaveScope, print, print, print, print, print, print
-
Constructor Details
-
TemplatingAstWriter
public TemplatingAstWriter(SourceWriter writer, ClassInitializerInfo classInitializerInfo, boolean topLevelOutput)
-
-
Method Details
-
setFragment
-
intrinsic
protected boolean intrinsic(org.mozilla.javascript.ast.FunctionCall node, int precedence) -
print
protected void print(org.mozilla.javascript.ast.ElementGet node) -
print
public void print(org.mozilla.javascript.ast.PropertyGet node) -
isTopLevelOutput
public boolean isTopLevelOutput()- Overrides:
isTopLevelOutputin classAstWriter
-