Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
com.google.javascript.jscomp.ant | |
com.google.javascript.jscomp.debugger | |
com.google.javascript.jscomp.deps |
Analyzes information about dependencies between files.
|
com.google.javascript.jscomp.gwt.client | |
com.google.javascript.jscomp.lint | |
com.google.javascript.jscomp.newtypes | |
com.google.javascript.jscomp.testing | |
com.google.javascript.refactoring |
Class and Description |
---|
AbstractCommandLineRunner
Implementations of AbstractCommandLineRunner translate flags into Java
API calls on the Compiler.
|
AbstractCommandLineRunner.CommandLineConfig
Configurations for the command line configs.
|
AbstractCommandLineRunner.FlagEntry
A pair from flag to its value.
|
AbstractCommandLineRunner.FlagUsageException
An exception thrown when command-line flags are used incorrectly.
|
AbstractCommandLineRunner.JsModuleSpec
Represents a specification for a js module.
|
AbstractCommandLineRunner.JsonFileSpec
Representation of a source file from an encoded json stream input
|
AbstractCommandLineRunner.JsSourceType
Flag types for js source files.
|
AbstractCompiler
An abstract compiler, to help remove the circular dependency of
passes on JSCompiler.
|
AbstractCompiler.ConfigContext
Represents the different contexts for which the compiler could have
distinct configurations.
|
AbstractCompiler.LifeCycleStage |
AbstractMessageFormatter
Abstract message formatter providing default behavior for implementations
of
MessageFormatter needing a SourceExcerptProvider . |
AbstractMessageFormatter.Color |
AbstractPeepholeOptimization
An abstract class whose implementations run peephole optimizations:
optimizations that look at a small section of code and either remove
that code (if it is not needed) or replaces it with smaller code.
|
AmbiguateProperties
Renames unrelated properties to the same name, using type information.
|
AmbiguateProperties.JSTypeBitSet |
AmbiguateProperties.Property
Encapsulates the information needed for renaming a property.
|
AmbiguateProperties.PropertyGraphNode |
AnalyzePrototypeProperties
Analyzes properties on prototypes.
|
AnalyzePrototypeProperties.NameContext
The context of the current name.
|
AnalyzePrototypeProperties.NameInfo
Information on all properties or global variables of a given name.
|
AnalyzePrototypeProperties.Property
Since there are two ways of assigning properties to prototypes, we hide
then behind this interface so they can both be removed regardless of type.
|
AnalyzePrototypeProperties.Symbol
The declaration of an abstract symbol.
|
AnalyzePrototypeProperties.SymbolType |
AngularPass.NodeContext |
AnonymousFunctionNamingCallback.FunctionNamer
Interface used by AnonymousFunctionNamingCallback to set the name
of anonymous functions.
|
AnonymousFunctionNamingPolicy
Strategies for how to do naming of anonymous functions that occur as
r-values in assignments and variable declarations.
|
AstChangeProxy
Proxy that provides a high level interface that compiler passes can
use to replace or remove sections of the AST.
|
AstChangeProxy.ChangeListener
Interface used to notify client code about changes done by
AstChangeProxy.
|
AstValidator
This class walks the AST and validates that the structure is correct.
|
AstValidator.ViolationHandler
Violation handler
|
BasicErrorManager
A basic error manager that sorts all errors and warnings reported to it to
generate a sorted report when the
BasicErrorManager.generateReport() method
is called. |
BasicErrorManager.ErrorWithLevel |
ByPathWarningsGuard
An implementation of a
WarningsGuard that can modify the
CheckLevel based on the file that caused the warning, and whether
this file matches a set of paths (specified either as include or exclude
of path name parts). |
CallGraph.Callsite
An inner class that represents call sites in the call graph.
|
CallGraph.Function
An inner class that represents functions in the call graph.
|
ChainCalls.CallSite
Records a call site to chain.
|
ChainCalls.GatherFunctions
Determines whether a function always returns this.
|
CheckConformance.InvalidRequirementSpec |
CheckConformance.Rule |
CheckEventfulObjectDisposal.DisposalCheckingPolicy
Policies to determine the disposal checking level.
|
CheckEventfulObjectDisposal.EventfulObjectState |
CheckEventfulObjectDisposal.SeenType |
CheckGlobalNames
Checks references to undefined properties of global variables.
|
CheckLevel
Controls checking levels of certain options.
|
CheckLevelLegacy
Enum used in flags to control the behavior of JS compiler checks.
|
CheckRequiresForConstructors.Mode |
ClosureCodeRemoval.RemovableAssignment
Utility class to track a node and its parent.
|
ClosureRewriteClass.ClassDefinition |
ClosureRewriteClass.MemberDefinition |
ClosureRewriteModule.ModuleDescription |
CoalesceVariableNames.LiveRangeChecker |
CodeChangeHandler
A simple listener for code change events.
|
CodeConsumer
Abstracted consumer of the CodeGenerator output.
|
CodeGenerator
CodeGenerator generates codes from a parse tree, sending it to the specified
CodeConsumer.
|
CodeGenerator.Context |
CodePrinter.Builder |
CodePrinter.Builder.CodeGeneratorFactory |
CodePrinter.Format |
CodePrinter.MappedCodePrinter |
CodePrinter.MappedCodePrinter.Mapping
Maintains a mapping from a given node to the position
in the source code at which its generated form was
placed.
|
CodingConvention
CodingConvention defines a set of hooks to customize the behavior of the
Compiler for a specific team/company.
|
CodingConvention.AssertionFunctionSpec
A function that will throw an exception when either:
-One or more of its parameters evaluate to false.
|
CodingConvention.Bind
Bind class
|
CodingConvention.Cache
Cache class
|
CodingConvention.DelegateRelationship
Delegates provides a mechanism and structure for identifying where classes
can call out to optional code to augment their functionality.
|
CodingConvention.ObjectLiteralCast
An object literal cast provides a mechanism to cast object literals to
other types without a warning.
|
CodingConvention.SubclassRelationship
Record subclass relations
|
CodingConvention.SubclassType
Specify the kind of inheritance
|
CodingConventions.Proxy
A convention that wraps another.
|
CollapseVariableDeclarations.Collapse
Encapsulation of information about a variable declaration collapse
|
CombinedCompilerPass.CallbackWrapper
Maintains information about a callback in order to simulate it being the
exclusive client of the shared
NodeTraversal . |
CommandLineRunner.Flags |
CommandLineRunner.FormattingOption
Set of options that can be used with the --formatting flag.
|
CompilationLevel
A CompilationLevel represents the level of optimization that should be
applied when compiling JavaScript code.
|
Compiler
Compiler (and the other classes in this package) does the following:
parses JS code
checks for undefined variables
performs optimizations such as constant folding and constants inlining
renames variables (to short names)
outputs compact JavaScript code
External variables are declared in 'externs' files.
|
Compiler.CodeBuilder
Stores a buffer of text to which more can be appended.
|
Compiler.SyntheticExternsPosition |
CompilerExecutor
Run the compiler in a separate thread with a larger stack
|
CompilerInput
A class for the internal representation of an input to the compiler.
|
CompilerOptions
Compiler options
|
CompilerOptions.AliasTransformation
A Role Specific Interface for the JS Compiler to report aliases used to
change the code during a compile.
|
CompilerOptions.AliasTransformationHandler
A Role Specific Interface for JS Compiler that represents a data holder
object which is used to store goog.scope alias code changes to code made
during a compile.
|
CompilerOptions.DependencyMode |
CompilerOptions.DevMode
When to do the extra sanity checks
|
CompilerOptions.Environment
An environment specifies the built-in externs that are loaded for a given
compilation.
|
CompilerOptions.ExtractPrototypeMemberDeclarationsMode |
CompilerOptions.JsonStreamMode
Whether standard input or standard output should be an array of
JSON encoded files
|
CompilerOptions.LanguageMode
A language mode applies to the whole compilation job.
|
CompilerOptions.Reach
A common enum for compiler passes that can run either globally or locally.
|
CompilerOptions.TracerMode
How much tracing we want to do
|
CompilerOptions.TweakProcessing
Option for the ProcessTweaks pass
|
CompilerPass
Interface for classes that can compile JS.
|
ComposeWarningsGuard
WarningsGuard that represents just a chain of other guards.
|
ConformanceConfig
Protobuf type
jscomp.ConformanceConfig |
ConformanceConfig.Builder
Protobuf type
jscomp.ConformanceConfig |
ConformanceConfigOrBuilder |
ConformanceRules.AbstractRule
A conformance rule implementation to support things common to all rules such as whitelisting
and reporting.
|
ConformanceRules.AbstractTypeRestrictionRule |
ConformanceRules.BannedProperty.Property |
ConformanceRules.ConformanceLevel
Possible check check results
|
ConformanceRules.ConformanceResult
Classes extending AbstractRule must return ConformanceResult
from their checkConformance implementation.
|
ConformanceRules.RestrictedMethodCall.Restriction |
ConformanceRules.RestrictedNameCall.Restriction |
ControlFlowAnalysis
This is a compiler pass that computes a control flow graph.
|
ControlFlowGraph
Control flow graph.
|
ControlFlowGraph.AbstractCfgNodeTraversalCallback
Abstract callback to visit a control flow graph node without going into
subtrees of the node that are also represented by other
control flow graph nodes.
|
ControlFlowGraph.Branch
The edge object for the control flow graph.
|
CoverageInstrumentationPass.CoverageReach |
CreateSyntheticBlocks.Marker |
CrossModuleCodeMotion.Declaration |
CrossModuleCodeMotion.InstanceofInfo |
CrossModuleCodeMotion.NamedInfo
useful information for each variable candidate
|
CrossModuleMethodMotion.IdGenerator |
CssRenamingMap
Interface used by
ReplaceCssNames to substitute CSS class names. |
CssRenamingMap.Style
Kind of renaming map
|
CustomPassExecutionTime
Custom pass type.
|
DataFlowAnalysis
A framework to help writing static program analysis.
|
DataFlowAnalysis.BranchedForwardDataFlowAnalysis |
DataFlowAnalysis.FlowState
The in and out states of a node.
|
DeadAssignmentsElimination.VariableLiveness |
DefaultNameGenerator
A simple class for generating unique JavaScript variable/property names.
|
DefaultNameGenerator.CharPriority
Represents a char that can be used in renaming as well as how often
that char appears in the generated code.
|
DefaultPassConfig
Pass factories and meta-data for native JSCompiler passes.
|
DefinitionProvider
Maps variable uses sites to variable definition sites.
|
DefinitionSite
Information about the context in which a Definition appears.
|
DefinitionsRemover.Definition |
DefinitionsRemover.FunctionDefinition
Represents a function declaration or function expression.
|
DefinitionsRemover.IncompleteDefinition
Represents an name-only external definition.
|
DependencyOptions
Options for how to manage dependencies between input files.
|
DiagnosticGroup
Group a set of related diagnostic types together, so that they can
be toggled on and off as one unit.
|
DiagnosticGroups
Named groups of DiagnosticTypes exposed by Compiler.
|
DiagnosticGroupWarningsGuard
Sets the level for a particular DiagnosticGroup.
|
DiagnosticType
The type of a compile or analysis error.
|
DisambiguateProperties.Property |
DotFormatter
DotFormatter prints out a dot file of the Abstract Syntax Tree.
|
ErrorFormat
Error formats available.
|
ErrorHandler
The error handler is any generic sink for warnings and errors,
after they've passed through any filtering
WarningsGuard s. |
ErrorManager
The error manager is in charge of storing, organizing and displaying
errors and warnings generated by the compiler.
|
ES6ModuleLoader
Provides compile-time locate semantics for ES6 and CommonJS modules.
|
Es6RewriteBlockScopedDeclaration.LoopClosureTransformer.LoopObject |
Es6RewriteGenerators.ExceptionContext |
Es6RewriteGenerators.LoopContext |
Es6ToEs3ClassSideInheritance.JavascriptClass |
Es6ToEs3Converter.ClassDeclarationMetadata
Represents static metadata on a class declaration expression - i.e.
|
Es6TypedToEs6Converter.Namespace |
ExpressionDecomposer
Methods necessary for partially or full decomposing an expression.
|
ExpressionDecomposer.DecompositionState
A simple class to track two things:
- whether side effects have been seen.
|
ExpressionDecomposer.DecompositionType |
ExternExportsPass.Export |
ExtractPrototypeMemberDeclarations.ExtractionInstance |
ExtractPrototypeMemberDeclarations.GatherExtractionInfo
Collects all the possible extraction instances in a node traversal.
|
ExtractPrototypeMemberDeclarations.Pattern |
ExtractPrototypeMemberDeclarations.PrototypeMemberDeclaration
Abstraction for a prototype member declaration.
|
FileInstrumentationData
Holds instrumentation details related to a file, namely, the filename,
the array name used in instrumentation, and the lines which were
instrumented (in encoded form).
|
FindExportableNodes.Mode |
FlowSensitiveInlineVariables.Candidate
Models the connection between a definition and a use of that definition.
|
FunctionInformationMap
Protobuf type
jscomp.FunctionInformationMap |
FunctionInformationMap.Builder
Protobuf type
jscomp.FunctionInformationMap |
FunctionInformationMap.Entry
Protobuf type
jscomp.FunctionInformationMap.Entry |
FunctionInformationMap.Entry.Builder
Protobuf type
jscomp.FunctionInformationMap.Entry |
FunctionInformationMap.EntryOrBuilder |
FunctionInformationMap.Module
Protobuf type
jscomp.FunctionInformationMap.Module |
FunctionInformationMap.Module.Builder
Protobuf type
jscomp.FunctionInformationMap.Module |
FunctionInformationMap.ModuleOrBuilder |
FunctionInformationMapOrBuilder |
FunctionInjector
A set of utility functions that replaces CALL with a specified
FUNCTION body, replacing and aliasing function parameters as
necessary.
|
FunctionInjector.CallSiteType
Supported call site types.
|
FunctionInjector.CanInlineResult |
FunctionInjector.InliningMode
The type of inlining to perform.
|
FunctionInjector.Reference
Holds a reference to the call node of a function call
|
FunctionNames
Extract a list of all function nodes defined in a JavaScript
program, assigns them globally unique ids and computes their fully
qualified names.
|
FunctionNames.FunctionListExtractor |
FunctionNames.FunctionRecord |
FunctionRewriter.Reducer
Interface implemented by the strength-reduction optimizers below.
|
FunctionRewriter.Reduction
Information needed to apply a reduction.
|
FunctionRewriter.SingleReturnStatementReducer
Base class for reducers that match functions that contain a
single return statement.
|
FunctionTypeBuilder
A builder for FunctionTypes, because FunctionTypes are so
ridiculously complex.
|
FunctionTypeBuilder.AstFunctionContents |
FunctionTypeBuilder.FunctionContents
Holds data dynamically inferred about functions.
|
FunctionTypeBuilder.UnknownFunctionContents |
GatherExternProperties.ExtractRecordTypePropertyNames |
GatherSideEffectSubexpressionsCallback.SideEffectAccumulator
Used by GatherSideEffectSubexpressionsCallback to notify client
code about side effect expressions that should be kept.
|
GlobalNamespace
Builds a global namespace of all the objects and their properties in
the global scope.
|
GlobalNamespace.AstChange
A simple data class that contains the information necessary to inspect
a node for changes to the global namespace.
|
GlobalNamespace.BuildGlobalNamespace
Builds a tree representation of the global namespace.
|
GlobalNamespace.Name
A name defined in global scope (e.g.
|
GlobalNamespace.Name.Type |
GlobalNamespace.Ref
A global name reference.
|
GlobalNamespace.Ref.Type |
GlobalTypeInfo
Contains information about all scopes; for every variable reference computes
whether it is local, a formal parameter, etc.; and computes information about
the class hierarchy.
|
GlobalTypeInfo.PropertyDef |
GlobalTypeInfo.PropertyType |
GlobalVarReferenceMap
An implementation for
ReferenceMap that is specific to global scope
and can be used in different passes. |
GlobalVarReferenceMap.SourceRefRange |
HotSwapCompilerPass
Interface for compiler passes that can be used in a hot-swap fashion.
|
InferJSDocInfo
Set the JSDocInfo on all types.
|
InlineFunctions.CallVisitor
Visit call sites for functions in functionMap.
|
InlineFunctions.CallVisitorCallback |
InlineFunctions.Function
Interface for dealing with function declarations and function
expressions equally
|
InlineFunctions.FunctionState
Use to track the decisions that have been made about a function.
|
InlineFunctions.Reference |
InlineProperties.PropertyInfo |
InlineVariables.AliasCandidate |
InlineVariables.IdentifyConstants
Filters variables declared as "constant", and declares them in the outer
declaredConstants map.
|
InlineVariables.Mode |
Instrumentation
Protobuf type
jscomp.Instrumentation |
Instrumentation.Builder
Protobuf type
jscomp.Instrumentation |
InstrumentationOrBuilder |
InvocationsCallback
Traversal callback that finds method invocations of the form
|
J2clPropertyInlinerPass.StaticFieldGetterSetterInliner.J2clProperty |
JoinOp
Defines a way join a list of LatticeElements.
|
JoinOp.BinaryJoinOp
An implementation of
JoinOp that makes it easy to join to
lattice elements at a time. |
JsAst
Generates an AST for a JavaScript source file.
|
JSError
Compile error description
|
JsMessage
A representation of a translatable message in JavaScript source code.
|
JsMessage.Builder
Contains functionality for creating JS messages.
|
JsMessage.IdGenerator
ID generator
|
JsMessage.Style
Message style that could be used for JS code parsing.
|
JsMessageDefinition
Container class that holds information about JS message source.
|
JsMessageVisitor
Traverses across parsed tree and finds I18N messages.
|
JsMessageVisitor.MalformedException |
JsMessageVisitor.MessageLocation |
JSModule
A JavaScript module has a unique name, consists of a list of compiler inputs,
and can depend on other modules.
|
JSModuleGraph
A
JSModule dependency graph that assigns a depth to each module and
can answer depth-related queries about them. |
JSModuleGraph.MissingModuleException
Another exception class
|
LightweightMessageFormatter
Lightweight message formatter.
|
LinkedFlowScope
A flow scope that tries to store as little symbol information as possible,
instead delegating to its parents.
|
LinkedFlowScope.FlatFlowScopeCache
A map that tries to cache as much symbol table information
as possible in a map.
|
LinkedFlowScope.LinkedFlowSlot
A static slot that can be used in a linked list.
|
LiveVariablesAnalysis
Compute the "liveness" of all local variables.
|
LiveVariablesAnalysis.LiveVariableLattice
The lattice that stores the liveness of all local variables at a given
point in the program.
|
MakeDeclaredNamesUnique.ContextualRenamer
Rename every locally name to be unique, the first encountered declaration
(specifically global names) are left in their original form.
|
MakeDeclaredNamesUnique.Renamer
Declared names renaming policy interface.
|
MaybeReachingVariableUse
Computes "may be" reaching use for all definitions of each variables.
|
MaybeReachingVariableUse.ReachingUses
May use definition lattice representation.
|
MemoizedScopeCreator
Memoize a scope creator.
|
MessageBundle
An interface for providing alternative values for user-visible messages in
JavaScript code.
|
MessageFormatter
Format warnings and errors.
|
MethodCompilerPass
Finds all method declarations and pulls them into data structures
for use during cleanups such as arity checks or inlining.
|
MethodCompilerPass.SignatureStore
The signature storage is provided by the implementing class.
|
MinimizedCondition
A class that represents a minimized conditional expression.
|
MinimizedCondition.MeasuredNode
An AST-node along with some additional metadata.
|
MinimizedCondition.MinimizationStyle
Definitions of the style of minimization preferred.
|
ModuleIdentifier
Basic information on an entry point module.
|
MustBeReachingVariableDef
Computes reaching definition for all use of each variables.
|
MustBeReachingVariableDef.Definition
Abstraction of a local variable definition.
|
MustBeReachingVariableDef.MustDef
Must reaching definition lattice representation.
|
NameAnalyzer.AliasSet
All the aliases in a program form a graph, where each global name is
a node in the graph, and two names are connected if one directly aliases
the other.
|
NameAnalyzer.JsName
Struct to hold information about a fully qualified JS name
|
NameAnalyzer.JsNameRefNode
Class for nodes that reference a fully-qualified JS name.
|
NameAnalyzer.NameInformation
Class to hold information that can be determined from a node tree about a
given name
|
NameAnalyzer.RefNode
Interface to get information about and remove unreferenced names.
|
NameAnalyzer.RefType
Relationship between the two names.
|
NameAnalyzer.SpecialReferenceNode
Base class for special reference nodes.
|
NameAnalyzer.TriState
Enum for saying a value can be true, false, or either (cleaner than using a
Boolean with null)
|
NameGenerator
A class that generates unique JavaScript variable/property names.
|
NameReferenceGraph
A graph represents all the referencing of global names in the program.
|
NameReferenceGraph.Name
Represents function or variable names that can be referenced globally.
|
NameReferenceGraph.Reference
A reference site for a function or a variable reference.
|
NameReferenceGraphConstruction.NameUse |
NewTypeInference.DeferredCheck |
NewTypeInference.EnvTypePair |
NewTypeInference.LValueResultBwd |
NewTypeInference.LValueResultFwd |
NewTypeInference.WarningReporter |
NodeIterators.FunctionlessLocalScope
Traverses the local scope, skipping all function nodes.
|
NodeIterators.LocalVarMotion
An iterator to help with variable inlining.
|
NodeNameExtractor
Utility class that extracts the qualified name out of a node.
|
NodeTraversal
NodeTraversal allows an iteration through the nodes in the parse tree,
and facilitates the optimizations on the parse tree.
|
NodeTraversal.AbstractPostOrderCallback
Abstract callback to visit all nodes in postorder.
|
NodeTraversal.AbstractPreOrderCallback
Abstract callback to visit all nodes in preorder.
|
NodeTraversal.AbstractScopedCallback
Abstract scoped callback to visit all nodes in postorder.
|
NodeTraversal.AbstractShallowCallback
Abstract callback to visit all nodes but not traverse into function
bodies.
|
NodeTraversal.AbstractShallowStatementCallback
Abstract callback to visit all structure and statement nodes but doesn't
traverse into functions or expressions.
|
NodeTraversal.Callback
Callback for tree-based traversals
|
NodeTraversal.FunctionCallback
Callback for passes that iterate over a list of functions
|
NodeTraversal.ScopedCallback
Callback that also knows about scope changes
|
NodeUtil.ValueType |
NodeUtil.Visitor
Interface for use with the visit method.
|
NTIScope |
OptimizeCalls
A root pass that container for other passes that should run on
with a single call graph (currently a SimpleDefinitionFinder).
|
OptimizeCalls.CallGraphCompilerPass |
OptimizeParameters.Parameter
Simple container class that keeps tracks of a parameter and whether it
should be removed.
|
OutputCharsetEncoder
Output charset encoder for
CodeGenerator that delegates to a CharsetEncoder. |
PassConfig
Pass factories and meta-data for native Compiler passes.
|
PassConfig.PassConfigDelegate
An implementation of PassConfig that just proxies all its method calls
into an inner class.
|
PassConfig.State
Intermediate state for a running pass configuration.
|
PassFactory
A factory for creating JSCompiler passes based on the Options
injected.
|
PassFactory.HotSwapPassFactory
A pass-factory that is good for
HotSwapCompilerPass passes. |
PeepholeOptimizationsPass
A compiler pass to run various peephole optimizations (e.g.
|
PeepholeSubstituteAlternateSyntax.FoldArrayAction |
PerformanceTracker
A PerformanceTracker collects statistics about the runtime of each pass, and
how much a pass impacts the size of the compiled output, before and after
gzip.
|
PerformanceTracker.Stats
A Stats object contains statistics about a pass run, such as running time,
size changes, etc
|
PhaseOptimizer
An object that optimizes the order of compiler passes.
|
PhaseOptimizer.Loop
A compound pass that contains atomic passes and runs them until they reach
a fixed point.
|
PhaseOptimizer.NamedPass
A single compiler pass.
|
PhaseOptimizer.ProgressRange
An object used when running many NamedPass loopable passes as a Loop pass,
to keep track of how far along we are.
|
PhaseOptimizer.ScopedChangeHandler
A change handler that marks scopes as changed when reportChange is called.
|
PhaseOptimizer.State
When processing loopable passes in order, the PhaseOptimizer can be in one
of these two states.
|
PolymerBehaviorExtractor.BehaviorDefinition
Parsed definition of a Polymer Behavior.
|
PolymerClassDefinition
Parsed Polymer class (element) definition.
|
PolymerPass.MemberDefinition
Any member of a Polymer element or Behavior.
|
PreprocessorSymbolTable
A symbol table for references that are removed by preprocessor passes
(like
ProcessClosurePrimitives ). |
PreprocessorSymbolTable.Reference |
ProcessClosurePrimitives.ProvidedName
Information required to replace a goog.provide call later in the traversal.
|
ProcessClosurePrimitives.UnrecognizedRequire
Information required to create a
MISSING_PROVIDE_ERROR warning. |
ProcessDefines
Process variables annotated as
@define . |
ProcessDefines.CollectDefines.RefInfo
A simple data structure for associating a Ref with the name
that it references.
|
ProcessDefines.DefineInfo
A simple class for storing information about a define.
|
ProcessEs6Modules.ModuleOriginalNamePair |
ProcessEs6Modules.NameNodePair |
ProcessTweaks.CollectTweaksResult |
ProcessTweaks.TweakFunction
An enum of goog.tweak functions.
|
ProcessTweaks.TweakFunctionCall
Holds information about a call to a goog.tweak function.
|
ProcessTweaks.TweakInfo
Stores information about a single tweak.
|
PropertyRenamingPolicy
Policies to determine how properties should be renamed.
|
PureFunctionIdentifier.FunctionInformation
Keeps track of a function's known side effects by type and the
list of calls that appear in a function's body.
|
RecentChange
Records whether the code has changed since the last reset.
|
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.
|
ReferenceCollectingCallback.BasicBlock
Represents a section of code that is uninterrupted by control structures
(conditional or iterative logic).
|
ReferenceCollectingCallback.Behavior
Way for callers to add specific behavior during traversal that
utilizes the built-up reference information.
|
ReferenceCollectingCallback.Reference
Represents a single declaration or reference to a variable.
|
ReferenceCollectingCallback.ReferenceCollection
A collection of references.
|
ReferenceCollectingCallback.ReferenceMap |
Region
Source code region.
|
RemoveUnusedVars.Assign |
RemoveUnusedVars.CallSiteOptimizer |
RemoveUnusedVars.Continuation
Our progress in a traversal can be expressed completely as the
current node and scope.
|
RenameLabels.LabelInfo |
RenameLabels.LabelNamespace |
RenameProperties.Property
Encapsulates the information needed for renaming a property.
|
RenameVars.Assignment |
RenamingMap
Interface used by to substitute names.
|
ReplaceIdGenerators.NameSupplier |
ReplaceIdGenerators.RenameStrategy |
ReplaceStrings.Config
Describes a function to look for a which parameters to replace.
|
ReplaceStrings.Result
Describes a replacement that occurred.
|
Requirement
Protobuf type
jscomp.Requirement |
Requirement.Builder
Protobuf type
jscomp.Requirement |
Requirement.Type
Protobuf enum
jscomp.Requirement.Type |
RequirementOrBuilder |
RescopeGlobalSymbols.RewriteScopeCallback.ModuleGlobal
Variable that doesn't cross module boundaries.
|
ResourceLoader.Libraries |
Result
Compilation results
|
RewritePolyfills.InjectedInstaller |
RewritePolyfills.Polyfill
Represents a single polyfill: specifically, a native symbol
(either a qualified name or a property name) that can be
rewritten and/or installed to provide the functionality to
a lower version.
|
RewritePolyfills.Polyfills
Describes all the available polyfills, including native and
required versions, and how to use them.
|
RewritePolyfills.Polyfills.Builder
Provides a DSL for building a
RewritePolyfills.Polyfills object by calling
RewritePolyfills.Polyfills.Builder.addStatics(com.google.javascript.jscomp.parsing.parser.FeatureSet, com.google.javascript.jscomp.parsing.parser.FeatureSet, java.lang.String, java.lang.String, java.lang.String...) , RewritePolyfills.Polyfills.Builder.addMethods(com.google.javascript.jscomp.parsing.parser.FeatureSet, com.google.javascript.jscomp.parsing.parser.FeatureSet, java.lang.String, java.lang.String...) , and RewritePolyfills.Polyfills.Builder.addClasses(com.google.javascript.jscomp.parsing.parser.FeatureSet, com.google.javascript.jscomp.parsing.parser.FeatureSet, java.lang.String, java.lang.String...)
to register the various polyfills and provide information about
the native and polyfilled versions, and how to use the polyfills. |
RhinoErrorReporter
An error reporter for serializing Rhino errors into our error format.
|
Scope
Scope contains information about a variable scope in JavaScript.
|
ScopeCreator
This interface defines how objects capable of creating scopes from the parse
tree behave.
|
ScopedAliases.AliasUsage |
ShowByPathWarningsGuard.ShowType
Controls whether warnings should be restricted to a specified path or
suppressed within the specified path.
|
SideEffectsAnalysis.AbstractMotionEnvironment
Represents an environment across which code might be moved, i.e.
|
SideEffectsAnalysis.EffectLocation
Interface representing the notion of an effect location -- an abstract
location that can be modified or referenced.
|
SideEffectsAnalysis.LocationAbstraction
An abstract class representing a location abstraction.
|
SideEffectsAnalysis.LocationAbstractionMode
The type of location abstraction to use for this analysis.
|
SideEffectsAnalysis.LocationSummary |
SideEffectsAnalysis.VariableUseDeclarationMap
Maps NAME nodes that refer to variables to the NAME
nodes that declared them.
|
SimpleDefinitionFinder
Simple name-based definition gatherer that implements
DefinitionProvider . |
SourceAst
An interface for accessing the AST root of an input.
|
SourceExcerptProvider
A source excerpt provider is responsible for building source code excerpt
of specific locations, such as a specific line or a region around a
given line number.
|
SourceExcerptProvider.ExcerptFormatter
A excerpt formatter is responsible of formatting source excerpts.
|
SourceExcerptProvider.SourceExcerpt
Source excerpt variety.
|
SourceFile
An abstract representation of a source file that provides access to
language-neutral features.
|
SourceFile.Builder
A builder interface for source files.
|
SourceFile.Generator
A JavaScript source code provider.
|
SourceMap
Collects information mapping the generated (compiled) source back to
its original source for debugging purposes.
|
SourceMap.DetailLevel
Source maps can be very large different levels of detail can be specified.
|
SourceMap.Format
An enumeration of available source map formats
|
SourceMap.LocationMapping
A simple pair of path prefixes to the desired "destination" location to use within the
source map.
|
SourceMapInput
A lazy-loaded SourceMapConsumerV3 instance.
|
SymbolTable
A symbol table for people that want to use Closure Compiler as an indexer.
|
SymbolTable.Reference
Reference
|
SymbolTable.Symbol
A symbol-table entry
|
SymbolTable.SymbolScope
Scope of a symbol
|
SyntacticScopeCreator
The syntactic scope creator scans the parse tree to create a Scope object
containing all the variable declarations in that scope.
|
SyntacticScopeCreator.RedeclarationHandler
Interface for injectable duplicate handling.
|
TemplateAstMatcher
A matcher that can take an arbitrary AST and use it as a template to find
matches in another.
|
TemplateAstMatcher.Visitor |
Tracer
Tracer provides a simple way to trace the handling of a request.
|
Tracer.AtomicTracerStatMap
This class encapsulates a map for keeping track of tracing statistics.
|
Tracer.Event
An event is created every time a Tracer is created or stopped
|
Tracer.InternalClock
For unit testing.
|
Tracer.Stat
Statistics for a given tracer type
|
Tracer.ThreadTrace
Stores a thread's Trace
|
Tracer.TracingStatistic
A TracingStatistic allows the program to add additional optional
statistics to the trace output.
|
TypeCheck
Checks the types of JS expressions against any declared type
information.
|
TypeCheck.SuggestionPair |
TypedScope
TypedScope contains information about variables and their types.
|
TypedScope.TypeResolver |
TypedScopeCreator
Creates the symbol table of variables available in the current scope and
their types.
|
TypedScopeCreator.AbstractScopeBuilder |
TypedScopeCreator.DeferredSetType
Defer attachment of types to nodes until all type names
have been resolved.
|
TypedScopeCreator.StubDeclaration
A stub declaration without any type information.
|
TypedVar
Several methods in this class, such as
isVar throw an exception when called. |
TypeInference.BooleanOutcomePair
When traversing short-circuiting binary operations, we need to keep track
of two sets of boolean literals:
1.
|
TypeInferencePass
A compiler pass to run the type inference analysis.
|
TypeMatchingStrategy
The different strategies for matching the
JSType of nodes. |
TypeMatchingStrategy.MatchResult
The result of comparing two different
JSType instances. |
TypeTransformation.NameResolver
A helper class for holding the information about the type variables
and the name variables in maprecord expressions
|
TypeValidator
A central reporter for all type violations: places where the programmer
has annotated a variable (or property) with one type, but has assigned
another type to it.
|
TypeValidator.TypeMismatch
Signals that the first type and the second type have been
used interchangeably.
|
UseSite
Information about the context in which a Definition is used.
|
Var
Used by
Scope to store information about variables. |
VariableMap
Stores the mapping from original variable name to new variable names.
|
VariableRenamingPolicy
Policies to determine which variables should be renamed.
|
VariableVisibilityAnalysis
An analysis pass that determines the visibility of variables -- that is,
whether a variable is truly local, a local captured by an inner scope, a
parameter, or a global variable.
|
VariableVisibilityAnalysis.VariableVisibility |
WarningLevel
Convert the warnings level to an Options object.
|
WarningsGuard
Class that allows to flexibly manage what to do with a reported
warning/error.
|
WarningsGuard.Priority
Priority
|
WhitelistWarningsGuard
An extension of
WarningsGuard that provides functionality to maintain
a list of warnings (white-list). |
WhitelistWarningsGuard.WhitelistBuilder
Whitelist builder
|
XtbMessageBundle.SecureEntityResolver
A secure EntityResolver that returns an empty string in response to
any attempt to resolve an external entity.
|
Class and Description |
---|
BasicErrorManager
A basic error manager that sorts all errors and warnings reported to it to
generate a sorted report when the
BasicErrorManager.generateReport() method
is called. |
CheckLevel
Controls checking levels of certain options.
|
CompilationLevel
A CompilationLevel represents the level of optimization that should be
applied when compiling JavaScript code.
|
Compiler
Compiler (and the other classes in this package) does the following:
parses JS code
checks for undefined variables
performs optimizations such as constant folding and constants inlining
renames variables (to short names)
outputs compact JavaScript code
External variables are declared in 'externs' files.
|
CompilerOptions
Compiler options
|
CompilerOptions.Environment
An environment specifies the built-in externs that are loaded for a given
compilation.
|
CompilerOptions.LanguageMode
A language mode applies to the whole compilation job.
|
ErrorHandler
The error handler is any generic sink for warnings and errors,
after they've passed through any filtering
WarningsGuard s. |
ErrorManager
The error manager is in charge of storing, organizing and displaying
errors and warnings generated by the compiler.
|
JSError
Compile error description
|
MessageFormatter
Format warnings and errors.
|
SourceFile
An abstract representation of a source file that provides access to
language-neutral features.
|
SourceMap
Collects information mapping the generated (compiled) source back to
its original source for debugging purposes.
|
WarningLevel
Convert the warnings level to an Options object.
|
Class and Description |
---|
Compiler
Compiler (and the other classes in this package) does the following:
parses JS code
checks for undefined variables
performs optimizations such as constant folding and constants inlining
renames variables (to short names)
outputs compact JavaScript code
External variables are declared in 'externs' files.
|
CompilerOptions
Compiler options
|
Result
Compilation results
|
Class and Description |
---|
DiagnosticType
The type of a compile or analysis error.
|
ErrorManager
The error manager is in charge of storing, organizing and displaying
errors and warnings generated by the compiler.
|
Class and Description |
---|
CompilationLevel
A CompilationLevel represents the level of optimization that should be
applied when compiling JavaScript code.
|
Compiler
Compiler (and the other classes in this package) does the following:
parses JS code
checks for undefined variables
performs optimizations such as constant folding and constants inlining
renames variables (to short names)
outputs compact JavaScript code
External variables are declared in 'externs' files.
|
CompilerOptions
Compiler options
|
WarningLevel
Convert the warnings level to an Options object.
|
Class and Description |
---|
AbstractCompiler
An abstract compiler, to help remove the circular dependency of
passes on JSCompiler.
|
CompilerPass
Interface for classes that can compile JS.
|
ControlFlowGraph
Control flow graph.
|
DiagnosticType
The type of a compile or analysis error.
|
HotSwapCompilerPass
Interface for compiler passes that can be used in a hot-swap fashion.
|
NodeTraversal
NodeTraversal allows an iteration through the nodes in the parse tree,
and facilitates the optimizations on the parse tree.
|
NodeTraversal.AbstractPostOrderCallback
Abstract callback to visit all nodes in postorder.
|
NodeTraversal.AbstractPreOrderCallback
Abstract callback to visit all nodes in preorder.
|
NodeTraversal.AbstractShallowCallback
Abstract callback to visit all nodes but not traverse into function
bodies.
|
NodeTraversal.Callback
Callback for tree-based traversals
|
Class and Description |
---|
CodingConvention
CodingConvention defines a set of hooks to customize the behavior of the
Compiler for a specific team/company.
|
DiagnosticGroup
Group a set of related diagnostic types together, so that they can
be toggled on and off as one unit.
|
DiagnosticType
The type of a compile or analysis error.
|
JSError
Compile error description
|
Class and Description |
---|
BasicErrorManager
A basic error manager that sorts all errors and warnings reported to it to
generate a sorted report when the
BasicErrorManager.generateReport() method
is called. |
CheckLevel
Controls checking levels of certain options.
|
Compiler
Compiler (and the other classes in this package) does the following:
parses JS code
checks for undefined variables
performs optimizations such as constant folding and constants inlining
renames variables (to short names)
outputs compact JavaScript code
External variables are declared in 'externs' files.
|
DiagnosticType
The type of a compile or analysis error.
|
ErrorHandler
The error handler is any generic sink for warnings and errors,
after they've passed through any filtering
WarningsGuard s. |
ErrorManager
The error manager is in charge of storing, organizing and displaying
errors and warnings generated by the compiler.
|
JSError
Compile error description
|
Region
Source code region.
|
SourceExcerptProvider
A source excerpt provider is responsible for building source code excerpt
of specific locations, such as a specific line or a region around a
given line number.
|
SourceFile
An abstract representation of a source file that provides access to
language-neutral features.
|
Class and Description |
---|
AbstractCompiler
An abstract compiler, to help remove the circular dependency of
passes on JSCompiler.
|
BasicErrorManager
A basic error manager that sorts all errors and warnings reported to it to
generate a sorted report when the
BasicErrorManager.generateReport() method
is called. |
CheckLevel
Controls checking levels of certain options.
|
Compiler
Compiler (and the other classes in this package) does the following:
parses JS code
checks for undefined variables
performs optimizations such as constant folding and constants inlining
renames variables (to short names)
outputs compact JavaScript code
External variables are declared in 'externs' files.
|
CompilerOptions
Compiler options
|
CompilerOptions.Environment
An environment specifies the built-in externs that are loaded for a given
compilation.
|
ErrorHandler
The error handler is any generic sink for warnings and errors,
after they've passed through any filtering
WarningsGuard s. |
ErrorManager
The error manager is in charge of storing, organizing and displaying
errors and warnings generated by the compiler.
|
JSError
Compile error description
|
NodeTraversal
NodeTraversal allows an iteration through the nodes in the parse tree,
and facilitates the optimizations on the parse tree.
|
NodeTraversal.AbstractShallowCallback
Abstract callback to visit all nodes but not traverse into function
bodies.
|
NodeTraversal.Callback
Callback for tree-based traversals
|
SourceFile
An abstract representation of a source file that provides access to
language-neutral features.
|
TemplateAstMatcher
A matcher that can take an arbitrary AST and use it as a template to find
matches in another.
|