Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
Modifier and Type | Class and Description |
---|---|
private class |
AnalyzePrototypeProperties.ProcessProperties |
private class |
ChainCalls.GatherFunctions
Determines whether a function always returns this.
|
(package private) class |
CheckAccessControls
A compiler pass that checks that the programmer has obeyed all the access
control restrictions indicated by JSDoc annotations, like
@private and @deprecated . |
private class |
CheckEventfulObjectDisposal.ComputeEventizeTraversal |
private class |
CheckEventfulObjectDisposal.Traversal |
(package private) class |
CheckMissingReturn
Checks functions for missing return statements.
|
(package private) class |
CheckUnreachableCode
Use
ControlFlowGraph and GraphReachability to inform user
about unreachable code. |
(package private) class |
CoalesceVariableNames
Reuse variable names if possible.
|
(package private) class |
CombinedCompilerPass
A compiler pass combining multiple
NodeTraversal.Callback
and NodeTraversal.ScopedCallback objects. |
(package private) class |
DeadAssignmentsElimination
Removes local variable assignments that are useless based on information from
LiveVariablesAnalysis . |
private class |
DisambiguateProperties.FindExternProperties
Finds all properties defined in the externs file and sets them as
ineligible for renaming from the type on which they are defined.
|
private class |
DisambiguateProperties.FindRenameableProperties
Traverses the tree, building a map from field names to Nodes for all
fields that can be renamed.
|
(package private) static class |
ExpandJqueryAliases.FindCallbackArgumentReferences
Given a jQuery.expandedEach callback function, traverse it and collect any
references to its parameter names.
|
(package private) class |
FlowSensitiveInlineVariables
Inline variables when possible.
|
(package private) class |
MakeDeclaredNamesUnique
Find all Functions, VARs, and Exception names and make them
unique.
|
(package private) static class |
MakeDeclaredNamesUnique.ContextualRenameInverter
Inverts the transformation by
MakeDeclaredNamesUnique.ContextualRenamer , when possible. |
private class |
NameReferenceGraphConstruction.Traversal |
static class |
NodeTraversal.AbstractScopedCallback
Abstract scoped callback to visit all nodes in postorder.
|
private static class |
Normalize.ScopeTicklingCallback
A simple class that causes scope to be created.
|
(package private) class |
OptimizeArgumentsArray
Optimization for functions that have
var_args or access the
arguments array. |
private class |
PureFunctionIdentifier.FunctionAnalyzer
Gather list of functions, functions with @nosideeffects
annotations, call sites, and functions that may mutate variables
not defined in the local scope.
|
(package private) class |
ReferenceCollectingCallback
A helper class for passes that want to access all information about where a
variable is referenced and declared at once and then make a decision as to
how it should be handled, possibly inlining, reordering, or generating
warnings.
|
(package private) class |
RenameLabels.ProcessLabels
Iterate through the nodes, renaming all the labels.
|
(package private) class |
RenameVars.ProcessVars
Iterate through the nodes, collect all the NAME nodes that need to be
renamed, and count how many times each variable name is referenced.
|
private class |
ScopedAliases.Traversal |
private class |
ShadowVariables.DoShadowVariables |
private class |
SymbolTable.ThisRefCollector |
private static class |
TypedScopeCreator.FirstOrderFunctionAnalyzer
Does a first-order function analysis that just looks at simple things
like what variables are escaped, and whether 'this' is used.
|
private static class |
TypeInferencePass.FirstScopeBuildingCallback |
private class |
TypeInferencePass.SecondScopeBuildingCallback |
Modifier and Type | Field and Description |
---|---|
private NodeTraversal.ScopedCallback |
NodeTraversal.scopeCallback
Possible callback for scope entry and exist
|
private NodeTraversal.ScopedCallback |
CombinedCompilerPass.CallbackWrapper.scopedCallback
if (callback instanceof ScopedCallback), then scopedCallback points
to an instance of ScopedCallback, otherwise scopedCallback points to null
|