Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
NameReferenceGraph
A graph represents all the referencing of global names in the program.
|
(package private) class |
SimpleDefinitionFinder
Simple name-based definition gatherer that implements
DefinitionProvider . |
Modifier and Type | Field and Description |
---|---|
private DefinitionProvider |
PureFunctionIdentifier.definitionProvider |
Modifier and Type | Method and Description |
---|---|
private DefinitionProvider |
CallGraph.constructDefinitionProvider(Node externsRoot,
Node jsRoot)
Constructs a DefinitionProvider that can be used to determine the
targets of callsites.
|
Modifier and Type | Method and Description |
---|---|
private void |
CallGraph.connectCallsiteToTargets(CallGraph.Callsite callsite,
DefinitionProvider definitionProvider)
Maps a Callsite to the Function(s) it could call
and each Function to the Callsite(s) that could call it.
|
private void |
CallGraph.createFunctionsAndCallsites(Node jsRoot,
DefinitionProvider provider)
Creates
CallGraph.Function s and CallGraph.Callsite s in a single
AST traversal. |
private void |
CallGraph.fillInFunctionInformation(DefinitionProvider provider)
Fills in function information (such as whether the function is ever
aliased or whether it is exposed to .call or .apply) using the
definition provider.
|
private static java.util.Collection<DefinitionsRemover.Definition> |
PureFunctionIdentifier.getCallableDefinitions(DefinitionProvider definitionProvider,
Node name)
Query the DefinitionProvider for the list of definitions that
correspond to a given qualified name subtree.
|
private java.util.Collection<DefinitionsRemover.Definition> |
PureFunctionIdentifier.getGoogCacheCallableDefinitions(DefinitionProvider definitionProvider,
CodingConvention.Cache cacheCall) |
private java.util.Collection<DefinitionsRemover.Definition> |
CallGraph.lookupDefinitionsForTargetsOfCall(Node callsite,
DefinitionProvider definitionProvider)
Queries the definition provider for the definitions that could be the
targets of the given callsite node.
|
Constructor and Description |
---|
PureFunctionIdentifier(AbstractCompiler compiler,
DefinitionProvider definitionProvider) |