public interface SyntacticQueries
Modifier and Type | Method and Description |
---|---|
boolean |
doesLiteralReferenceParameter(AbstractNode literalAllocationNode,
java.lang.String parameterName)
True iff the given parameter is used in the given literal constructor.
|
java.util.Set<java.lang.String> |
getClosureVariableNames(Function function)
The set of free variables of a function that are bound in an outer function (closure variables).
|
int |
getExpressionRegister(com.google.javascript.jscomp.parsing.parser.trees.ParseTree tree)
The register used for storing the result of an expression.
|
SyntacticReference |
getSimpleRead(com.google.javascript.jscomp.parsing.parser.trees.ParseTree tree)
The associated reference for a simple read.
|
java.util.Set<CallNode> |
getTajsCallsWithLiteralFalseAsFirstOrFourthArgument()
The set of CallNodes to TAJS_* function with 'false' as first or fourth argument.
|
boolean |
isCorrelatedAccessFunction(Function function)
True iff the given function contains variables that are used as both property read and write names.
|
boolean |
isFunctionWithThisReference(Function function)
True iff the function has an occurence of 'this'.
|
boolean |
isInForIn(AbstractNode node)
True iff the given node is inside a for-in loop.
|
boolean |
isLoopVariable(Function function,
java.lang.String variable)
True iff the given variable appears syntactically in the condition of a non-nested loop
and in a dynamic property read operation in the given function.
|
boolean |
isSimpleRead(com.google.javascript.jscomp.parsing.parser.trees.ParseTree tree)
True iff the parse tree is a simple read.
|
boolean |
isStackVariable(Function function,
java.lang.String variableName)
True iff the variable could be allocated on the stack (i.e.
|
boolean doesLiteralReferenceParameter(AbstractNode literalAllocationNode, java.lang.String parameterName)
java.util.Set<java.lang.String> getClosureVariableNames(Function function)
int getExpressionRegister(com.google.javascript.jscomp.parsing.parser.trees.ParseTree tree)
SyntacticReference getSimpleRead(com.google.javascript.jscomp.parsing.parser.trees.ParseTree tree)
java.util.Set<CallNode> getTajsCallsWithLiteralFalseAsFirstOrFourthArgument()
boolean isCorrelatedAccessFunction(Function function)
boolean isFunctionWithThisReference(Function function)
boolean isInForIn(AbstractNode node)
boolean isLoopVariable(Function function, java.lang.String variable)
boolean isSimpleRead(com.google.javascript.jscomp.parsing.parser.trees.ParseTree tree)
boolean isStackVariable(Function function, java.lang.String variableName)
Copyright © 2009-2019 Aarhus University