Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
Modifier and Type | Method and Description |
---|---|
private static CodeGenerator.Context |
CodeGenerator.getContextForNoInOperator(CodeGenerator.Context context)
If we're in a IN_FOR_INIT_CLAUSE, we can't permit in operators in the
expression.
|
private static CodeGenerator.Context |
CodeGenerator.getContextForNonEmptyExpression(CodeGenerator.Context currentContext) |
static CodeGenerator.Context |
CodeGenerator.Context.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CodeGenerator.Context[] |
CodeGenerator.Context.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
CodeGenerator.add(Node n,
CodeGenerator.Context context) |
(package private) void |
TypedCodeGenerator.add(Node n,
CodeGenerator.Context context) |
private void |
CodeGenerator.addArrowFunction(Node n,
Node first,
Node last,
CodeGenerator.Context context) |
private void |
CodeGenerator.addExpr(Node n,
int minPrecedence,
CodeGenerator.Context context) |
private void |
CodeGenerator.addFunction(Node n,
Node first,
Node last,
CodeGenerator.Context context) |
(package private) void |
CodeGenerator.addList(Node firstInList,
boolean isArrayOrFunctionArgument,
CodeGenerator.Context lhsContext,
java.lang.String separator) |
private void |
CodeGenerator.addNonEmptyStatement(Node n,
CodeGenerator.Context context,
boolean allowNonBlockChild)
Adds a block or expression, substituting a VOID with an empty statement.
|
private boolean |
CodeGenerator.arrowFunctionNeedsParens(Node parent,
CodeGenerator.Context context) |
private static CodeGenerator.Context |
CodeGenerator.getContextForNoInOperator(CodeGenerator.Context context)
If we're in a IN_FOR_INIT_CLAUSE, we can't permit in operators in the
expression.
|
private static CodeGenerator.Context |
CodeGenerator.getContextForNonEmptyExpression(CodeGenerator.Context currentContext) |
private void |
CodeGenerator.processEnd(Node n,
CodeGenerator.Context context) |
private void |
CodeGenerator.unrollBinaryOperator(Node n,
int op,
java.lang.String opStr,
CodeGenerator.Context context,
CodeGenerator.Context rhsContext,
int leftPrecedence,
int rightPrecedence)
We could use addList recursively here, but sometimes we produce
very deeply nested operators and run out of stack space, so we
just unroll the recursion when possible.
|