Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
Modifier and Type | Class and Description |
---|---|
(package private) static class |
DefinitionsRemover.AssignmentDefinition
Represents a declaration within an assignment.
|
(package private) static class |
DefinitionsRemover.ExternalNameOnlyDefinition
Represents an name-only external definition.
|
(package private) static class |
DefinitionsRemover.FunctionArgumentDefinition
Represents a function formal parameter.
|
(package private) static class |
DefinitionsRemover.FunctionDefinition
Represents a function declaration or function expression.
|
(package private) static class |
DefinitionsRemover.FunctionExpressionDefinition
Represents a function expression that acts as a RHS.
|
(package private) static class |
DefinitionsRemover.IncompleteDefinition
Represents an name-only external definition.
|
(package private) static class |
DefinitionsRemover.NamedFunctionDefinition
Represents a function declaration without assignment node such as
function foo() . |
(package private) static class |
DefinitionsRemover.ObjectLiteralPropertyDefinition
Represents member declarations using a object literal.
|
(package private) static class |
DefinitionsRemover.RecordTypePropertyDefinition
Represents member declarations using a record type from externs.
|
(package private) static class |
DefinitionsRemover.UnknownDefinition
Represents an unknown definition.
|
(package private) static class |
DefinitionsRemover.VarDefinition
Represents a VAR declaration with an assignment.
|
Modifier and Type | Field and Description |
---|---|
(package private) DefinitionsRemover.Definition |
DefinitionSite.definition |
Modifier and Type | Field and Description |
---|---|
private java.util.List<DefinitionsRemover.Definition> |
NameReferenceGraph.Name.declarations |
private com.google.common.collect.Multimap<java.lang.String,DefinitionsRemover.Definition> |
SimpleDefinitionFinder.nameDefinitionMultimap |
Modifier and Type | Method and Description |
---|---|
(package private) static DefinitionsRemover.Definition |
DefinitionsRemover.getDefinition(Node n,
boolean isExtern) |
private DefinitionsRemover.Definition |
RemoveUnusedVars.CallSiteOptimizer.getFunctionDefinition(Node function) |
Modifier and Type | Method and Description |
---|---|
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.
|
java.util.List<DefinitionsRemover.Definition> |
NameReferenceGraph.Name.getDeclarations() |
java.util.Collection<DefinitionsRemover.Definition> |
DefinitionProvider.getDefinitionsReferencedAt(Node useSite)
Returns a collection of definitions that characterize the
possible values of a variable or property.
|
java.util.Collection<DefinitionsRemover.Definition> |
NameReferenceGraph.getDefinitionsReferencedAt(Node useSite) |
java.util.Collection<DefinitionsRemover.Definition> |
SimpleDefinitionFinder.getDefinitionsReferencedAt(Node useSite) |
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.
|
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
SimpleDefinitionFinder.canModifyDefinition(DefinitionsRemover.Definition definition) |
private static boolean |
MarkNoSideEffectCalls.definitionTypeContainsFunctionType(DefinitionsRemover.Definition def)
Determines if the type of the value of the RHS expression can
be a function node.
|
(package private) java.util.Collection<UseSite> |
SimpleDefinitionFinder.getUseSites(DefinitionsRemover.Definition definition)
Returns a collection of use sites that may refer to provided
definition.
|
private boolean |
SimpleDefinitionFinder.isExported(DefinitionsRemover.Definition definition) |
private CallGraph.Function |
CallGraph.lookupFunctionForDefinition(DefinitionsRemover.Definition definition)
Returns a
CallGraph.Function for the passed in DefinitionsRemover.Definition
or null if the definition isn't for a function. |
private void |
DevirtualizePrototypeMethods.rewriteCallSites(SimpleDefinitionFinder defFinder,
DefinitionsRemover.Definition definition,
java.lang.String newMethodName)
Rewrites object method call sites as calls to global functions
that take "this" as their first argument.
|
Constructor and Description |
---|
DefinitionSite(Node node,
DefinitionsRemover.Definition definition,
JSModule module,
boolean inGlobalScope,
boolean inExterns) |