See: Description
Interface | Description |
---|---|
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.
|
AnonymousFunctionNamingCallback.FunctionNamer |
Interface used by AnonymousFunctionNamingCallback to set the name
of anonymous functions.
|
AstChangeProxy.ChangeListener |
Interface used to notify client code about changes done by
AstChangeProxy.
|
AstValidator.ViolationHandler |
Violation handler
|
CheckConformance.Rule | |
CodeChangeHandler |
A simple listener for code change events.
|
CodePrinter.Builder.CodeGeneratorFactory | |
CodingConvention |
CodingConvention defines a set of hooks to customize the behavior of the
Compiler for a specific team/company.
|
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.
|
CompilerPass |
Interface for classes that can compile JS.
|
ConformanceConfigOrBuilder | |
CssRenamingMap |
Interface used by
ReplaceCssNames to substitute CSS class names. |
DefinitionProvider |
Maps variable uses sites to variable definition sites.
|
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.
|
FunctionInformationMap.EntryOrBuilder | |
FunctionInformationMap.ModuleOrBuilder | |
FunctionInformationMapOrBuilder | |
FunctionTypeBuilder.FunctionContents |
Holds data dynamically inferred about functions.
|
GatherSideEffectSubexpressionsCallback.SideEffectAccumulator |
Used by GatherSideEffectSubexpressionsCallback to notify client
code about side effect expressions that should be kept.
|
HotSwapCompilerPass |
Interface for compiler passes that can be used in a hot-swap fashion.
|
InlineFunctions.CallVisitorCallback | |
InlineFunctions.Function |
Interface for dealing with function declarations and function
expressions equally
|
InstrumentationOrBuilder | |
JoinOp<L extends LatticeElement> |
Defines a way join a list of LatticeElements.
|
JsMessage.IdGenerator |
ID generator
|
MakeDeclaredNamesUnique.Renamer |
Declared names renaming policy interface.
|
MessageBundle |
An interface for providing alternative values for user-visible messages in
JavaScript code.
|
MessageFormatter |
Format warnings and errors.
|
MethodCompilerPass.SignatureStore |
The signature storage is provided by the implementing class.
|
NameAnalyzer.RefNode |
Interface to get information about and remove unreferenced names.
|
NameGenerator |
A class that generates unique JavaScript variable/property names.
|
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.Visitor |
Interface for use with the visit method.
|
OptimizeCalls.CallGraphCompilerPass | |
ReferenceCollectingCallback.Behavior |
Way for callers to add specific behavior during traversal that
utilizes the built-up reference information.
|
ReferenceCollectingCallback.ReferenceMap | |
Region |
Source code region.
|
RenamingMap |
Interface used by to substitute names.
|
ReplaceIdGenerators.NameSupplier | |
RequirementOrBuilder | |
ScopeCreator |
This interface defines how objects capable of creating scopes from the parse
tree behave.
|
SideEffectsAnalysis.EffectLocation |
Interface representing the notion of an effect location -- an abstract
location that can be modified or referenced.
|
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.
|
SourceFile.Generator |
A JavaScript source code provider.
|
SyntacticScopeCreator.RedeclarationHandler |
Interface for injectable duplicate handling.
|
TemplateAstMatcher.Visitor | |
Tracer.InternalClock |
For unit testing.
|
Tracer.TracingStatistic |
A TracingStatistic allows the program to add additional optional
statistics to the trace output.
|
TypedScope.TypeResolver |
Class | Description |
---|---|
AbstractCommandLineRunner<A extends Compiler,B extends CompilerOptions> |
Implementations of AbstractCommandLineRunner translate flags into Java
API calls on the Compiler.
|
AbstractCommandLineRunner.CommandLineConfig |
Configurations for the command line configs.
|
AbstractCommandLineRunner.FlagEntry<T> |
A pair from flag to its value.
|
AbstractCommandLineRunner.JsModuleSpec |
Represents a specification for a js module.
|
AbstractCompiler |
An abstract compiler, to help remove the circular dependency of
passes on JSCompiler.
|
AbstractMessageFormatter |
Abstract message formatter providing default behavior for implementations
of
MessageFormatter needing a SourceExcerptProvider . |
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.
|
AccessControlUtils |
Helper functions for computing the visibility of names and properties
in JavaScript source code.
|
AliasStrings |
A
Compiler pass for aliasing strings. |
AliasStrings |
GWT compatible no-op replacement of
AliasStrings |
AliasStrings.StringOccurrence |
A class that holds the location of a single JavaScript string literal
|
AmbiguateProperties |
Renames unrelated properties to the same name, using type information.
|
AnalyzePrototypeProperties |
Analyzes properties on prototypes.
|
AnalyzePrototypeProperties.AssignmentProperty |
Properties created via EXPR assignment:
|
AnalyzePrototypeProperties.GlobalFunction |
A function initialized as a VAR statement or a function declaration.
|
AnalyzePrototypeProperties.LiteralProperty |
Properties created via object literals:
|
AngularPass |
Compiler pass for AngularJS-specific needs.
|
AngularPass.NodeContext | |
AnonymousFunctionNamingCallback |
Visitor that performs naming operations on anonymous functions by
means of the FunctionNamer interface.
|
AstChangeProxy |
Proxy that provides a high level interface that compiler passes can
use to replace or remove sections of the AST.
|
AstValidator |
This class walks the AST and validates that the structure is correct.
|
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 | |
BasicErrorManager.LeveledJSErrorComparator |
Comparator of
JSError with an associated CheckLevel . |
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 |
A pass the uses a
DefinitionProvider to compute a call graph for an
AST. |
ChainCalls |
Chain calls to functions that return this.
|
ChainCalls.CallSite |
Records a call site to chain.
|
CheckAccessControls |
A compiler pass that checks that the programmer has obeyed all the access
control restrictions indicated by JSDoc annotations, like
@private and @deprecated . |
CheckConformance |
GWT compatible no-op replacement of
CheckConformance |
CheckConformance |
Provides a framework for checking code against a set of user configured
conformance rules.
|
CheckDebuggerStatement |
CheckDebuggerStatement checks for the presence of the "debugger"
statement in JavaScript code. |
CheckEventfulObjectDisposal |
Check to ensure there exists a path to dispose of each eventful object
created.
|
CheckEventfulObjectDisposal.EventfulObjectState | |
CheckGlobalNames |
Checks references to undefined properties of global variables.
|
CheckGlobalThis |
Checks for certain uses of the
this keyword that are considered
unsafe because they are likely to reference the global this object
unintentionally. |
CheckJSDoc |
Checks for misplaced, misused or deprecated JSDoc annotations.
|
CheckMissingGetCssName |
Ensures string literals matching certain patterns are only used as
goog.getCssName parameters.
|
CheckMissingGetCssName |
GWT compatible no-op replacement for
CheckMissingGetCssName |
CheckMissingReturn |
Checks functions for missing return statements.
|
CheckPathsBetweenNodes<N,E> |
See constructor,
#CheckPathsBetweenNodes(DiGraph,
DiGraphNode, DiGraphNode, Predicate, Predicate) , for a
description of this algorithm. |
CheckProvides |
Ensures that '@constructor X' has a 'goog.provide("X")' .
|
CheckRegExp |
Look for references to the global RegExp object that would cause
regular expressions to be unoptimizable, and checks that regular expressions
are syntactically valid.
|
CheckRequiresForConstructors |
This pass walks the AST to create a Collection of 'new' nodes and
'goog.require' nodes.
|
CheckSideEffects |
Checks for non side effecting statements such as
|
CheckSideEffects.StripProtection |
Remove side-effect sync functions.
|
CheckSuspiciousCode |
Checks for common errors, such as misplaced semicolons:
|
CheckUnreachableCode |
Use
ControlFlowGraph and GraphReachability to inform user
about unreachable code. |
CheckUnreachableCode.ReachablePredicate | |
CheckUnusedPrivateProperties |
This pass looks for properties that are never read.
|
CleanupPasses |
Provides passes that should be run before hot-swap/incremental builds.
|
CleanupPasses.MemoizedScopeCleanupPass |
A CleanupPass implementation that will remove stored scopes from the
MemoizedScopeCreator of the compiler instance for a the hot swapped script.
|
ClosureCheckModule |
Checks that goog.module() is used correctly.
|
ClosureCodeRemoval |
Compiler pass that removes Closure-specific code patterns.
|
ClosureCodingConvention |
This describes the Closure-specific JavaScript coding conventions.
|
ClosureCodingConvention.AssertFunctionByTypeName |
A function that will throw an exception when the value is not an
instanceof the given type name, for instance "Element".
|
ClosureCodingConvention.AssertInstanceofSpec |
A function that will throw an exception when if the value is not
an instanceof a specific type.
|
ClosureOptimizePrimitives |
Compiler pass that converts all calls to:
goog.object.create(key1, val1, key2, val2, ...) where all of the keys
are literals into object literals.
|
ClosureRewriteClass |
Rewrites "goog.defineClass" into a form that is suitable for
type checking and dead code elimination.
|
ClosureRewriteClass.ClassDefinition | |
ClosureRewriteClass.MemberDefinition | |
ClosureRewriteModule |
Process aliases in goog.modules.
|
CoalesceVariableNames |
Reuse variable names if possible.
|
CoalesceVariableNames.CombinedLiveRangeChecker |
A simple wrapper calls to call two AbstractCfgNodeTraversalCallback
callback during the same traversal.
|
CoalesceVariableNames.LiveRangeChecker | |
CodeConsumer |
Abstracted consumer of the CodeGenerator output.
|
CodeGenerator |
CodeGenerator generates codes from a parse tree, sending it to the specified
CodeConsumer.
|
CodePrinter |
CodePrinter prints out JS code in either pretty format or compact format.
|
CodePrinter.Builder | |
CodePrinter.CompactCodePrinter | |
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.
|
CodePrinter.PrettyCodePrinter | |
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
|
CodingConventions |
Helper classes for dealing with coding conventions.
|
CodingConventions.DefaultCodingConvention |
The default coding convention.
|
CodingConventions.Proxy |
A convention that wraps another.
|
CollapseAnonymousFunctions |
Collapses anonymous function expressions into named function declarations,
i.e.
|
CollapseProperties |
Flattens global objects/namespaces by replacing each '.' with '$' in
their names.
|
CollapseVariableDeclarations |
Collapses multiple variable declarations into a single one.
|
CollapseVariableDeclarations.Collapse |
Encapsulation of information about a variable declaration collapse
|
CollectFileOverviewVisibility |
Compiler pass that collects visibility annotations in
@fileoverview
blocks. |
CombinedCompilerPass |
A compiler pass combining multiple
NodeTraversal.Callback
and NodeTraversal.ScopedCallback objects. |
CombinedCompilerPass.CallbackWrapper |
Maintains information about a callback in order to simulate it being the
exclusive client of the shared
NodeTraversal . |
CommandLineRunner |
CommandLineRunner translates flags into Java API calls on the Compiler.
|
CommandLineRunner.Flags | |
CommandLineRunner.Flags.BooleanOptionHandler | |
CommandLineRunner.Flags.JsOptionHandler | |
CommandLineRunner.Flags.JsZipOptionHandler | |
CommandLineRunner.Flags.MultiFlagSetter<T> | |
CommandLineRunner.Flags.WarningGuardErrorOptionHandler | |
CommandLineRunner.Flags.WarningGuardOffOptionHandler | |
CommandLineRunner.Flags.WarningGuardWarningOptionHandler | |
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.
|
CompilerExecutor |
GWT compatible replacement for
CompilerExecutor |
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.
|
CompilerInput.DepsFinder | |
CompilerOptions |
Compiler options
|
CompilerOptions.NullAliasTransformationHandler | |
CompilerOptions.NullAliasTransformationHandler.NullAliasTransformation | |
CompilerOptionsPreprocessor |
Checks for combinations of options that are incompatible, i.e.
|
ComposeWarningsGuard |
WarningsGuard that represents just a chain of other guards.
|
ComposeWarningsGuard.GuardComparator | |
Conformance | |
Conformance |
GWT compatible no-op replacement for
Conformance |
ConformanceConfig |
Protobuf type
jscomp.ConformanceConfig |
ConformanceConfig |
GWT compatible no-op replacement for
ConformanceConfig |
ConformanceConfig.Builder |
Protobuf type
jscomp.ConformanceConfig |
ConformanceConfigOrBuilder |
GWT compatible no-op replacement for
ConformanceConfigOrBuilder |
ConformanceRules |
Standard conformance rules.
|
ConformanceRules.AbstractRule |
A conformance rule implementation to support things common to all rules such as whitelisting
and reporting.
|
ConformanceRules.AbstractTypeRestrictionRule | |
ConformanceRules.BanExpose |
Banned @expose
|
ConformanceRules.BanGlobalVars |
Banned global var declarations.
|
ConformanceRules.BannedCodePattern |
Banned Code Pattern rule
|
ConformanceRules.BannedDependency |
Banned dependency rule
|
ConformanceRules.BannedName |
Banned name rule
|
ConformanceRules.BannedProperty |
Banned property rule
|
ConformanceRules.BannedProperty.Property | |
ConformanceRules.BanNullDeref |
Banned dereferencing null or undefined types.
|
ConformanceRules.BanThrowOfNonErrorTypes |
Banned throw of non-error object types.
|
ConformanceRules.BanUnknownDirectThisPropsReferences |
Banned unknown type references of the form "this.prop" unless
- it is immediately cast,
- it is a @template type (until template type
restricts are enabled) or
- the value is unused.
|
ConformanceRules.BanUnknownThis |
Banned unknown "this" types.
|
ConformanceRules.BanUnknownTypedClassPropsReferences |
Banned unknown type references of the form "instance.prop" unless
(a) it is immediately cast/asserted, or
(b) it is a @template type (until template type restrictions are enabled), or
(c) the value is unused, or
(d) the source object type is unknown (to avoid error cascades)
|
ConformanceRules.BanUnresolvedType |
Banned accessing properties from objects that are unresolved
forward-declared type names.
|
ConformanceRules.ConformanceResult |
Classes extending AbstractRule must return ConformanceResult
from their checkConformance implementation.
|
ConformanceRules.ConformanceUtil | |
ConformanceRules.CustomRuleProxy |
A custom rule proxy, for rules that we load dynamically.
|
ConformanceRules.InferredConstCheck |
Check that variables annotated as @const have an inferred type, if there is
no type given explicitly.
|
ConformanceRules.NoImplicitlyPublicDecls |
Requires top-level Closure-style "declarations"
(example:
foo.bar.Baz = ...; ) to have explicit visibility
annotations, either at the declaration site or in the @fileoverview
block. |
ConformanceRules.RequireFileoverviewVisibility |
Requires source files to contain a top-level
@fileoverview block
with an explicit visibility annotation. |
ConformanceRules.RequireUseStrict |
Require "use strict" rule
|
ConformanceRules.RestrictedMethodCall |
Banned property call rule
|
ConformanceRules.RestrictedMethodCall.Restriction | |
ConformanceRules.RestrictedNameCall |
Restricted name call rule
|
ConformanceRules.RestrictedNameCall.Restriction | |
ConstCheck |
Verifies that constants are only assigned a value once.
|
ConstParamCheck |
Enforces that invocations of the method
goog.string.Const.from are
done with an argument which is a string literal. |
ControlFlowAnalysis |
This is a compiler pass that computes a control flow graph.
|
ControlFlowAnalysis.AstControlFlowGraph |
A
ControlFlowGraph which provides a node comparator based on the
pre-order traversal of the AST. |
ControlFlowGraph<N> |
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.
|
ConvertToDottedProperties |
Converts property accesses from quoted string syntax to dot syntax, where
possible.
|
CoverageInstrumentationCallback |
This class implements a traversal to instrument an AST for code coverage.
|
CoverageInstrumentationPass |
GWT compatible no-op replacement for
CoverageInstrumentationPass |
CoverageInstrumentationPass |
This code implements the instrumentation pass over the AST
(returned by JSCompiler).
|
CoverageUtil |
This class contains all general purpose static methods that are used by
coverage instrumentation related classes - not limited to them, though.
|
CreateSyntheticBlocks |
Creates synthetic blocks to optimizations from moving code
past markers in the source.
|
CreateSyntheticBlocks.Marker | |
CrossModuleCodeMotion |
A
Compiler pass for moving code to a deeper module if possible. |
CrossModuleCodeMotion.Declaration | |
CrossModuleMethodMotion |
Move prototype methods into later modules.
|
CrossModuleMethodMotion.IdGenerator | |
CssRenamingMap.ByPart |
ByPart renaming map
|
CssRenamingMap.ByWhole |
ByWhole renaming map
|
DartSuperAccessorsPass |
Converts
super getter and setter calls in order to support the output
of the Dart Dev Compiler (https://github.com/dart-lang/dev_compiler). |
DataFlowAnalysis<N,L extends LatticeElement> |
A framework to help writing static program analysis.
|
DataFlowAnalysis.BranchedFlowState<L extends LatticeElement> |
The in and out states of a node.
|
DataFlowAnalysis.BranchedForwardDataFlowAnalysis<N,L extends LatticeElement> | |
DataFlowAnalysis.FlowState<L extends LatticeElement> |
The in and out states of a node.
|
DeadAssignmentsElimination |
Removes local variable assignments that are useless based on information from
LiveVariablesAnalysis . |
DeclaredGlobalExternsOnWindow |
A compiler pass to normalize externs by declaring global names on
the "window" object, if it is declared in externs.
|
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.
|
DefinitionSite |
Information about the context in which a Definition appears.
|
DefinitionsRemover |
Models an assignment that defines a variable and the removal of it.
|
DefinitionsRemover.AssignmentDefinition |
Represents a declaration within an assignment.
|
DefinitionsRemover.Definition | |
DefinitionsRemover.ExternalNameOnlyDefinition |
Represents an name-only external definition.
|
DefinitionsRemover.FunctionArgumentDefinition |
Represents a function formal parameter.
|
DefinitionsRemover.FunctionDefinition |
Represents a function declaration or function expression.
|
DefinitionsRemover.FunctionExpressionDefinition |
Represents a function expression that acts as a RHS.
|
DefinitionsRemover.IncompleteDefinition |
Represents an name-only external definition.
|
DefinitionsRemover.NamedFunctionDefinition |
Represents a function declaration without assignment node such as
function foo() . |
DefinitionsRemover.ObjectLiteralPropertyDefinition |
Represents member declarations using a object literal.
|
DefinitionsRemover.RecordTypePropertyDefinition |
Represents member declarations using a record type from externs.
|
DefinitionsRemover.UnknownDefinition |
Represents an unknown definition.
|
DefinitionsRemover.VarDefinition |
Represents a VAR declaration with an assignment.
|
Denormalize |
The goal with this pass is to reverse the simplifications done in the
normalization pass that are not handled by other passes (such as
CollapseVariableDeclarations) to avoid making the resulting code larger.
|
DependencyOptions |
Options for how to manage dependencies between input files.
|
DevirtualizePrototypeMethods |
Rewrites prototyped methods calls as static calls that take "this"
as their first argument.
|
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.
|
DisambiguatePrivateProperties |
Disambiguate properties by file, when they are private by naming convention.
|
DisambiguateProperties |
DisambiguateProperties renames properties to disambiguate between unrelated
fields with the same name.
|
DisambiguateProperties.Warnings | |
DotFormatter |
DotFormatter prints out a dot file of the Abstract Syntax Tree.
|
EmptyMessageBundle |
An implementation of MessageBundle that has no translations.
|
ErrorPass |
A compiler pass that just reports an error.
|
Es6ConvertSuper |
Converts
super nodes. |
Es6ExternsCheck |
Checks to make sure the required ES6 externs are present.
|
ES6ModuleLoader |
Provides compile-time locate semantics for ES6 and CommonJS modules.
|
Es6RenameReferences |
Renames references in code and JSDoc when necessary.
|
Es6RenameVariablesInParamLists |
Renames declarations and references in function bodies to avoid shadowing
names referenced in the parameter list, in default values or computed properties.
|
Es6RewriteArrowFunction |
Converts ES6 arrow functions to standard anonymous ES3 functions.
|
Es6RewriteArrowFunction.UpdateThisAndArgumentsReferences | |
Es6RewriteBlockScopedDeclaration |
Rewrite "let"s and "const"s as "var"s.
|
Es6RewriteDestructuring |
Rewrites ES6 destructuring patterns and default parameters to valid ES3 code.
|
Es6RewriteGenerators |
Converts ES6 generator functions to valid ES3 code.
|
Es6RewriteGenerators.ControlExitsCheck | |
Es6RewriteGenerators.ExceptionContext | |
Es6RewriteGenerators.LoopContext | |
Es6SplitVariableDeclarations |
Splits variable declarations that declare multiple variables into
separate declarations, if at least one of the declarations is a
destructuring declaration.
|
Es6SyntacticScopeCreator |
The syntactic scope creator scans the parse tree to create a Scope object
containing all the variable declarations in that scope.
|
Es6TemplateLiterals |
Helper class for transpiling ES6 template literals.
|
Es6ToEs3ClassSideInheritance |
Rewrites static inheritance to explicitly copy inherited properties from superclass to
subclass so that the typechecker knows the subclass has those properties.
|
Es6ToEs3ClassSideInheritance.JavascriptClass | |
Es6ToEs3Converter |
Converts ES6 code to valid ES5 code.
|
Es6ToEs3Converter.ClassDeclarationMetadata |
Represents static metadata on a class declaration expression - i.e.
|
Es6TypedToEs6Converter |
Converts
Node.getDeclaredTypeExpression() to JSDocInfo.getType() type
annotations. |
Es6TypedToEs6Converter.Namespace | |
ExpandJqueryAliases |
Replace known jQuery aliases and methods with standard
conventions so that the compiler recognizes them.
|
ExpandJqueryAliases.FindCallbackArgumentReferences |
Given a jQuery.expandedEach callback function, traverse it and collect any
references to its parameter names.
|
ExploitAssigns |
Tries to chain assignments together.
|
ExportTestFunctions |
Generates goog.exportSymbol for test functions, so they can be recognized
by the test runner, even if the code is compiled.
|
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.
|
ExternExportsPass |
Creates an externs file containing all exported symbols and properties
for later consumption.
|
ExtractPrototypeMemberDeclarations |
When there are multiple prototype member declarations to the same class,
use a temp variable to alias the prototype object.
|
ExtractPrototypeMemberDeclarations.PrototypeMemberDeclaration |
Abstraction for a prototype member declaration.
|
FieldCleanupPass |
A CleanupPass implementation that will remove all field declarations on
JSTypes contributed by the original file.
|
FieldCleanupPass.QualifiedNameSearchTraversal |
Search for fields to cleanup by looking for nodes in the tree which are
root nodes of qualified names and getting the final token of the qualified
name as a candidate field.
|
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 |
Records all of the symbols and properties that should be exported.
|
FlowSensitiveInlineVariables |
Inline variables when possible.
|
ForbiddenChange |
A change handler that throws an exception if any changes are made.
|
FunctionArgumentInjector |
A nifty set of functions to deal with the issues of replacing function
parameters with a set of call argument expressions.
|
FunctionArgumentInjector.ReferencedAfterSideEffect |
Collect parameter names referenced after a non-local side-effect.
|
FunctionInfo |
GWT compatible no-op replacement for
FunctionInfo |
FunctionInfo | |
FunctionInformationMap |
Protobuf type
jscomp.FunctionInformationMap |
FunctionInformationMap |
GWT compatible no-op replacement for
FunctionInformationMap |
FunctionInformationMap.Builder |
Protobuf type
jscomp.FunctionInformationMap |
FunctionInformationMap.Entry |
Protobuf type
jscomp.FunctionInformationMap.Entry |
FunctionInformationMap.Entry.Builder |
Protobuf type
jscomp.FunctionInformationMap.Entry |
FunctionInformationMap.Module |
Protobuf type
jscomp.FunctionInformationMap.Module |
FunctionInformationMap.Module.Builder |
Protobuf type
jscomp.FunctionInformationMap.Module |
FunctionInformationMapOrBuilder |
GWT compatible no-op replacement for
FunctionInformationMapOrBuilder |
FunctionInjector |
A set of utility functions that replaces CALL with a specified
FUNCTION body, replacing and aliasing function parameters as
necessary.
|
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.FunctionExpressionNamer | |
FunctionNames.FunctionListExtractor | |
FunctionNames.FunctionRecord | |
FunctionRewriter |
Reduces the size of common function expressions.
|
FunctionRewriter.EmptyFunctionReducer |
Reduces return immutable constant literal methods declarations
with calls to a constant return method factory.
|
FunctionRewriter.GetterReducer |
Reduces property getter method declarations with calls to a
getter method factory.
|
FunctionRewriter.IdentityReducer |
Reduces property getter method declarations with calls to a
getter method factory.
|
FunctionRewriter.Reducer |
Interface implemented by the strength-reduction optimizers below.
|
FunctionRewriter.ReturnConstantReducer |
Reduces return immutable constant literal methods declarations
with calls to a constant return method factory.
|
FunctionRewriter.SetterReducer |
Reduces property setter method declarations with calls to a
setter method factory.
|
FunctionRewriter.SingleReturnStatementReducer |
Base class for reducers that match functions that contain a
single return statement.
|
FunctionToBlockMutator |
A class to transform the body of a function into a generic block suitable
for inlining.
|
FunctionToBlockMutator.LabelNameSupplier | |
FunctionTypeBuilder |
A builder for FunctionTypes, because FunctionTypes are so
ridiculously complex.
|
FunctionTypeBuilder.AstFunctionContents | |
FunctionTypeBuilder.UnknownFunctionContents | |
GatherExternProperties |
Gathers property names defined in externs.
|
GatherRawExports |
External references of the form: "window['xx']" indicate names that must
be reserved when variable renaming to avoid conflicts.
|
GatherSideEffectSubexpressionsCallback |
Callback that gathers subexpressions that may have side effects
and appends copies of those subexpressions to the replacements
list.
|
GatherSideEffectSubexpressionsCallback.GetReplacementSideEffectSubexpressions |
Populates the provided replacement list by appending copies of
subtrees that have side effects.
|
GenerateExports |
Generates goog.exportSymbol/goog.exportProperty for the @export annotation.
|
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.Name |
A name defined in global scope (e.g.
|
GlobalNamespace.Ref |
A global name reference.
|
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.GlobalVarRefCleanupPass |
A CleanupPass implementation that will replace references to old Syntactic
Global Scopes generated in previous compile runs with references to the
Global Typed Scope.
|
GlobalVarReferenceMap.SourceRefRange | |
GoogleCodingConvention |
This describes the Google-specific JavaScript coding conventions.
|
GoogleJsMessageIdGenerator |
An
JsMessage.IdGenerator designed to play nicely with Google's Translation
systems. |
GoogleJsMessageIdGenerator.FP |
64-bit fingerprint support.
|
GoogleJsMessageIdGenerator.MessageId |
Generates fingerprint for an English message using the FP package.
|
IdMappingUtil |
A utility class for generating and parsing id mappings held by
ReplaceIdGenerators . |
ImplicitNullabilityCheck |
Warn about types in JSDoc that are implicitly nullable.
|
InferConsts |
Attaches the CONST_VAR annotation to any variable that's
1) Provably well-defined and assigned once in its lifetime.
|
InferJSDocInfo |
Set the JSDocInfo on all types.
|
InjectEs6RuntimeLibrary |
Adds runtime libraries to the beginning of the AST.
|
InlineAliases |
Inline aliases created by exports of modules before type checking.
|
InlineCostEstimator |
For use with CodeGenerator to determine the cost of generated code.
|
InlineCostEstimator.CompiledSizeEstimator |
Code consumer that estimates compiled size by assuming names are
shortened and all whitespace is stripped.
|
InlineFunctions |
Inlines functions that are divided into two types: "direct call node
replacement" (aka "direct") and as a block of statements (aka block).
|
InlineFunctions.CallVisitor |
Visit call sites for functions in functionMap.
|
InlineFunctions.FunctionExpression |
FunctionExpression implementation of the Function interface
|
InlineFunctions.FunctionState |
Use to track the decisions that have been made about a function.
|
InlineFunctions.Reference | |
InlineObjectLiterals |
Using the infrastructure provided by
ReferenceCollectingCallback ,
identify variables that are only ever assigned to object literals
and that are never used in entirety, and expand the objects into
individual variables. |
InlineProperties |
InlineProperties attempts to find references to properties that are known to
be constants and inline the known value.
|
InlineProperties.PropertyInfo | |
InlineSimpleMethods |
Inlines methods that take no arguments and have only a return statement
returning a property.
|
InlineVariables |
Using the infrastructure provided by VariableReferencePass, identify
variables that are used only once and in a way that is safe to move, and then
inline them.
|
InlineVariables.AliasCandidate | |
InlineVariables.IdentifyConstants |
Filters variables declared as "constant", and declares them in the outer
declaredConstants map.
|
InlineVariables.IdentifyLocals |
Filters non-global variables.
|
Instrumentation |
GWT compatible no-op replacement for
Instrumentation |
Instrumentation |
Protobuf type
jscomp.Instrumentation |
Instrumentation.Builder |
Protobuf type
jscomp.Instrumentation |
InstrumentationOrBuilder |
GWT compatible no-op replacement for
InstrumentationOrBuilder |
InstrumentationTemplate | |
InstrumentationTemplate |
GWT compatible no-op replacement for
InstrumentationTemplate |
InstrumentFunctions |
Instruments functions for when functions first get called and defined.
|
InstrumentFunctions.RemoveCallback |
The application must refer to these variables to output them so the
application must also declare these variables for the first
VarCheck pass. |
InvocationsCallback |
Traversal callback that finds method invocations of the form
|
J2clPass |
Rewrites/inlines some J2CL constructs to be more optimizable.
|
J2clPropertyInlinerPass |
This pass targets j2cl output.
|
JoinOp.BinaryJoinOp<L extends LatticeElement> |
An implementation of
JoinOp that makes it easy to join to
lattice elements at a time. |
JqueryCodingConvention |
This describes the jQuery specific JavaScript coding conventions.
|
JsAst |
Generates an AST for a JavaScript source file.
|
JSDocInfoPrinter |
Prints a JSDocInfo, used for preserving type annotations in ES6 transpilation.
|
JsdocToEs6TypedConverter |
Converts JS with types in jsdocs to an extended JS syntax that includes types.
|
JsdocToEs6TypedConverter.TypeDeclarationsIRFactory |
Converts root nodes of JSTypeExpressions into TypeDeclaration ASTs.
|
JSError |
Compile error description
|
JsMessage |
A representation of a translatable message in JavaScript source code.
|
JsMessage.Builder |
Contains functionality for creating JS messages.
|
JsMessage.Hash |
This class contains routines for hashing.
|
JsMessage.PlaceholderReference |
A reference to a placeholder in a translatable message.
|
JsMessageDefinition |
Container class that holds information about JS message source.
|
JsMessageExtractor |
Extracts messages and message comments from JS code.
|
JsMessageVisitor |
Traverses across parsed tree and finds I18N messages.
|
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.InverseDepthComparator |
A module depth comparator that considers a deeper module to be "less than"
a shallower module.
|
JvmMetrics |
A class to report jvm/jmx statistics.
|
LightweightMessageFormatter |
Lightweight message formatter.
|
LightweightMessageFormatter.LineNumberingFormatter |
Formats a region by appending line numbers in front, e.g.
|
LineNumberCheck |
A simple pass to ensure that all AST nodes have line numbers,
an that the line numbers are monotonically increasing.
|
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.FlowScopeJoinOp |
Join the two FlowScopes.
|
LinkedFlowScope.LinkedFlowSlot |
A static slot that can be used in a linked list.
|
Linter |
GWT compatible no-op replacement of
Linter |
Linter |
Minimal binary that just runs the "lint" checks which can be run on a single file at a time.
|
LintPassConfig |
A PassConfig for the standalone linter, which runs on a single file at a time.
|
LiveVariablesAnalysis |
Compute the "liveness" of all local variables.
|
LiveVariablesAnalysis.LiveVariableJoinOp | |
LiveVariablesAnalysis.LiveVariableLattice |
The lattice that stores the liveness of all local variables at a given
point in the program.
|
LoggerErrorManager |
An error manager that logs errors and warnings using a logger in addition to
collecting them in memory.
|
MakeDeclaredNamesUnique |
Find all Functions, VARs, and Exception names and make them
unique.
|
MakeDeclaredNamesUnique.BoilerplateRenamer |
For injecting boilerplate libraries.
|
MakeDeclaredNamesUnique.ContextualRenameInverter |
Inverts the transformation by
MakeDeclaredNamesUnique.ContextualRenamer , when possible. |
MakeDeclaredNamesUnique.ContextualRenamer |
Rename every locally name to be unique, the first encountered declaration
(specifically global names) are left in their original form.
|
MakeDeclaredNamesUnique.InlineRenamer |
Rename every declared name to be unique.
|
MakeDeclaredNamesUnique.WhitelistedRenamer |
Only rename things that match the whitelist.
|
MarkNoSideEffectCalls |
Set the NoSideEffects property for function and constructor calls
that refer to functions that are known to have no side effects.
|
MaybeReachingVariableUse |
Computes "may be" reaching use for all definitions of each variables.
|
MaybeReachingVariableUse.ReachingUses |
May use definition lattice representation.
|
MaybeReachingVariableUse.ReachingUsesJoinOp |
The join is a simple union because of the "may be" nature of the analysis.
|
MemoizedScopeCreator |
Memoize a scope creator.
|
MethodCompilerPass |
Finds all method declarations and pulls them into data structures
for use during cleanups such as arity checks or inlining.
|
MinimizedCondition |
A class that represents a minimized conditional expression.
|
MinimizedCondition.MeasuredNode |
An AST-node along with some additional metadata.
|
MinimizeExitPoints |
Transform the structure of the AST so that the number of explicit exits
are minimized and instead flows to implicit exits conditions.
|
ModuleIdentifier |
Basic information on an entry point module.
|
MoveFunctionDeclarations |
Moves top-level function declarations to the top.
|
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.
|
MustBeReachingVariableDef.MustDefJoin | |
NameAnalyzer |
This pass identifies all global names, simple (e.g.
|
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.NameInformation |
Class to hold information that can be determined from a node tree about a
given name
|
NameAnalyzer.SpecialReferenceNode |
Base class for special reference nodes.
|
NameAnonymousFunctions |
Gives anonymous function names.
|
NameAnonymousFunctionsMapped |
Gives anonymous function names that are optimized to be small and provides a
mapping back to the original names.
|
NameReferenceGraph |
A graph represents all the referencing of global names in the program.
|
NameReferenceGraph.Reference |
A reference site for a function or a variable reference.
|
NameReferenceGraphConstruction |
Constructs a name reference graph.
|
NameReferenceGraphConstruction.NameUse | |
NameReferenceGraphReport |
Generate a nice HTML file describing the name reference graph.
|
NewTypeInference |
New type inference algorithm.
|
NewTypeInference.DeferredCheck | |
NewTypeInference.EnvTypePair | |
NewTypeInference.LValueResultBwd | |
NewTypeInference.LValueResultFwd | |
NewTypeInference.WarningReporter | |
NodeIterators |
A package for common iteration patterns.
|
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.AbstractNodeTypePruningCallback |
Abstract callback to visit a pruned set of nodes.
|
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.
|
NodeUtil |
NodeUtil contains generally useful AST utilities.
|
NodeUtil.MatchDeclaration |
A predicate for matching var or function declarations.
|
NodeUtil.MatchNameNode |
A predicate for matching name nodes with the specified node.
|
NodeUtil.MatchNodeType |
A predicate for matching nodes with the specified type.
|
NodeUtil.MatchNotClass |
A predicate for matching anything except class nodes.
|
NodeUtil.MatchNotFunction |
A predicate for matching anything except function nodes.
|
NodeUtil.MatchShallowStatement |
A predicate for matching statements without exiting the current scope.
|
NodeUtil.VarCollector | |
Normalize |
The goal with this pass is to simplify the other passes,
by making less complex statements.
|
Normalize.FindExposeAnnotations |
Find all the @expose annotations.
|
Normalize.NormalizeStatements |
Simplify the AST:
- VAR declarations split, so they represent exactly one child
declaration.
|
Normalize.PropagateConstantAnnotationsOverVars |
Propagate constant annotations over the Var graph.
|
Normalize.ScopeTicklingCallback |
A simple class that causes scope to be created.
|
Normalize.VerifyConstants |
Walk the AST tree and verify that constant names are used consistently.
|
NTIScope | |
ObjectLitAssignmentShortening |
Shorten a object literal by using following features in ES6 upward:
1.
|
ObjectPropertyStringPostprocess |
Rewrites
new JSCompiler_ObjectPropertyString(window, foo.prototype.bar)
to new JSCompiler_ObjectPropertyString(foo.prototype, 'bar')
Rewrites
new JSCompiler_ObjectPropertyString(window, foo[bar])
to new JSCompiler_ObjectPropertyString(foo, bar)
Rewrites
new JSCompiler_ObjectPropertyString(window, foo$bar$baz) to
new JSCompiler_ObjectPropertyString(window, 'foo$bar$baz') |
ObjectPropertyStringPreprocess |
Rewrites
new goog.testing.ObjectPropertyString(foo, 'bar') to
new JSCompiler_ObjectPropertyString(window, foo.bar) . |
OptimizeArgumentsArray |
Optimization for functions that have
var_args or access the
arguments array. |
OptimizeCalls |
A root pass that container for other passes that should run on
with a single call graph (currently a SimpleDefinitionFinder).
|
OptimizeParameters |
Optimize function calls and function signatures.
|
OptimizeParameters.Parameter |
Simple container class that keeps tracks of a parameter and whether it
should be removed.
|
OptimizeReturns |
A compiler pass for optimize function return results.
|
OutputCharsetEncoder |
Output charset encoder for
CodeGenerator that delegates to a CharsetEncoder. |
OutputCharsetEncoder |
GWT compatible no-op replacement for
OutputCharsetEncoder |
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. |
PeepholeCollectPropertyAssignments |
A pass that looks for assignments to properties of an object or array
immediately following its creation using the abbreviated syntax.
|
PeepholeFoldConstants |
Peephole optimization to fold constants (e.g.
|
PeepholeMinimizeConditions |
A peephole optimization that minimizes conditional expressions
according to De Morgan's laws.
|
PeepholeOptimizationsPass |
A compiler pass to run various peephole optimizations (e.g.
|
PeepholeRemoveDeadCode |
Peephole optimization to remove useless code such as IF's with false
guard conditions, comma operator left hand sides with no side effects, etc.
|
PeepholeRemoveDeadCode.MatchUnnamedBreak |
A predicate for matching anything except function nodes.
|
PeepholeReplaceKnownMethods |
Just to fold known methods when they are called with constants.
|
PeepholeSimplifyRegExp |
Simplifies regular expression patterns and flags.
|
PeepholeSubstituteAlternateSyntax |
A peephole optimization that minimizes code by simplifying conditional
expressions, replacing IFs with HOOKs, replacing object constructors
with literals, and simplifying returns.
|
PerformanceTracker |
GWT compatible no-op replacement for
PerformanceTracker |
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.ProgressRange |
An object used when running many NamedPass loopable passes as a Loop pass,
to keep track of how far along we are.
|
PolymerBehaviorExtractor |
Helpers to extract behaviors from Polymer element declarations.
|
PolymerBehaviorExtractor.BehaviorDefinition |
Parsed definition of a Polymer Behavior.
|
PolymerClassDefinition |
Parsed Polymer class (element) definition.
|
PolymerClassRewriter |
Rewrites a given call to Polymer({}) to a set of declarations and assignments which can be
understood by the compiler.
|
PolymerPass |
Rewrites "Polymer({})" calls into a form that is suitable for type checking and dead code
elimination.
|
PolymerPass.MemberDefinition |
Any member of a Polymer element or Behavior.
|
PolymerPassErrors |
Static error constants related to the
PolymerPass . |
PolymerPassFindExterns |
Finds the externs for the PolymerElement base class and all of its properties in the externs.
|
PolymerPassStaticUtils |
Simple static utility functions shared between the
PolymerPass and its helper classes. |
PolymerPassSuppressBehaviors |
For every Polymer Behavior, strip property type annotations and add suppress checktypes on
functions.
|
PrepareAst |
Prepare the AST before we do any checks or optimizations on it.
|
PrepareAst.PrepareAnnotations |
Normalize where annotations appear on the AST.
|
PreprocessorSymbolTable |
A symbol table for references that are removed by preprocessor passes
(like
ProcessClosurePrimitives ). |
PreprocessorSymbolTable.Reference | |
PrintStreamErrorManager |
An error manager that prints errors and warnings to the print stream
provided in addition to the functionality of the
BasicErrorManager . |
PrintStreamErrorManager |
GWT compatible no-op replacement for
PrintStreamErrorManager |
ProcessClosurePrimitives |
Replaces goog.provide calls, removes goog.require calls, verifies that
goog.require has a corresponding goog.provide and some closure specific
simplifications.
|
ProcessClosurePrimitives.UnrecognizedRequire |
Information required to create a
MISSING_PROVIDE_ERROR warning. |
ProcessCommonJSModules |
Rewrites a CommonJS module http://wiki.commonjs.org/wiki/Modules/1.1.1
into a form that can be safely concatenated.
|
ProcessCommonJSModules.FindDefineAmdStatements |
This class detects the UMD pattern by checking if a node includes
a "define.amd" statement.
|
ProcessCommonJSModules.FindGoogProvideOrGoogModule |
Avoid processing if we find the appearance of goog.provide or goog.module.
|
ProcessCommonJSModules.FindModuleExportStatements |
This class detects the UMD pattern by checking if a node includes
a "module.exports" or "exports" statement.
|
ProcessDefines |
Process variables annotated as
@define . |
ProcessDefines.CollectDefines |
Finds all assignments to @defines, and figures out the last value of
the @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 |
Rewrites a ES6 module into a form that can be safely concatenated.
|
ProcessEs6Modules.ModuleOriginalNamePair | |
ProcessEs6Modules.NameNodePair | |
ProcessTweaks |
Process goog.tweak primitives.
|
ProcessTweaks.CollectTweaksResult | |
ProcessTweaks.TweakFunctionCall |
Holds information about a call to a goog.tweak function.
|
PureFunctionIdentifier |
Compiler pass that computes function purity.
|
PureFunctionIdentifier.Driver |
A compiler pass that constructs a reference graph and drives
the PureFunctionIdentifier across it.
|
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.
|
PureFunctionIdentifier.SideEffectPropagationCallback |
Callback that propagates side effect information across call sites.
|
RecentChange |
Records whether the code has changed since the last reset.
|
RecordFunctionInformation |
Records information about functions and modules.
|
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.Reference |
Represents a single declaration or reference to a variable.
|
ReferenceCollectingCallback.ReferenceCollection |
A collection of references.
|
ReferenceCollectingCallback.ReferenceMapWrapper | |
RemoveUnusedClassProperties |
This pass looks for properties that are never read and removes them.
|
RemoveUnusedPrototypeProperties |
Removes unused properties from prototypes.
|
RemoveUnusedVars |
Garbage collection for variable and function definitions.
|
RemoveUnusedVars.Assign | |
RemoveUnusedVars.CallSiteOptimizer | |
RenameLabels |
RenameLabels renames all the labels so that they have short names, to reduce
code size and also to obfuscate the code.
|
RenameLabels.DefaultNameSupplier | |
RenameLabels.LabelInfo | |
RenameLabels.LabelNamespace | |
RenameProperties |
RenameProperties renames properties (including methods) of all JavaScript
objects.
|
RenameProperties.Property |
Encapsulates the information needed for renaming a property.
|
RenameVars |
RenameVars renames all the variables names into short names, to reduce code
size and also to obfuscate the code.
|
ReorderConstantExpression |
Reorder constant expression hoping for a better compression.
|
ReplaceCssNames |
ReplaceCssNames replaces occurrences of goog.getCssName('foo') with
a shorter version from the passed in renaming map.
|
ReplaceIdGenerators |
Replaces calls to id generators with ids.
|
ReplaceIdGenerators.MappedNameSupplier | |
ReplaceIdGenerators.ObfuscatedNameSupplier | |
ReplaceIdGenerators.PseudoNameSupplier | |
ReplaceIdGenerators.StableNameSupplier | |
ReplaceIdGenerators.UniqueRenamingToken | |
ReplaceMessages |
ReplaceMessages replaces user-visible messages with alternatives.
|
ReplaceMessages |
GWT compatible no-op replacement for
ReplaceMessages |
ReplaceMessagesForChrome |
Replaces user-visible messages with appropriate calls to
chrome.i18n.getMessage.
|
ReplaceMessagesForChrome |
GWT compatible no-op replacement for
ReplaceMessagesForChrome |
ReplaceStrings |
Replaces JavaScript strings in the list of supplied methods with shortened
forms.
|
ReplaceStrings.Config |
Describes a function to look for a which parameters to replace.
|
ReplaceStrings.Result |
Describes a replacement that occurred.
|
Requirement |
GWT compatible no-op replacement for
Requirement |
Requirement |
Protobuf type
jscomp.Requirement |
Requirement.Builder |
Protobuf type
jscomp.Requirement |
RequirementOrBuilder |
GWT compatible no-op replacement for
RequirementOrBuilder |
RescopeGlobalSymbols |
Finds all references to global symbols and rewrites them to be property
accesses to a special object with the same name as the global symbol.
|
ResourceLoader |
Utility class that handles resource loading.
|
ResourceLoader |
GWT compatible replacement for
ResourceLoader |
Result |
Compilation results
|
RewriteBindThis |
Rewrite .bind(this) calls on an anonymous functions to arrow functions
(which have implicit this binding).
|
RewritePolyfills |
Rewrites calls to ES6 library functions to use compiler-provided polyfills,
e.g.,
var m = new Map(); becomes
$jscomp.Map$install(); var m = new $jscomp.Map(); |
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.
|
RhinoErrorReporter.OldRhinoErrorReporter | |
RuntimeTypeCheck |
Inserts run-time type assertions.
|
RuntimeTypeCheck.AddMarkers |
Inserts marker properties for user-defined interfaces and classes.
|
SanityCheck |
A compiler pass that verifies the structure of the AST conforms
to a number of invariants.
|
Scope |
Scope contains information about a variable scope in JavaScript.
|
ScopedAliases |
Process aliases in goog.scope blocks.
|
ScopedAliases.AliasedNode | |
ScopedAliases.AliasedTypeNode | |
ScopedAliases.AliasUsage | |
ShadowVariables |
Tries to compute a list of variables that can shadow a variable in the
outer scope.
|
ShowByPathWarningsGuard |
Control whether warnings should be restricted or suppressed for specified
paths.
|
SideEffectsAnalysis |
A pass that analyzes side effects to determine when it is safe to move
code from one program point to another.
|
SideEffectsAnalysis.AbstractMotionEnvironment |
Represents an environment across which code might be moved, i.e.
|
SideEffectsAnalysis.CrossModuleMotionEnvironment |
An environment for motion between modules.
|
SideEffectsAnalysis.DegenerateLocationAbstraction |
A very imprecise location abstraction in which there are only two abstract
locations: one representing all concrete locations and one for bottom
(no concrete locations).
|
SideEffectsAnalysis.DegenerateLocationAbstraction.DegenerateEffectLocation | |
SideEffectsAnalysis.IntraproceduralMotionEnvironment |
An environment for motion within a function.
|
SideEffectsAnalysis.LocationAbstraction |
An abstract class representing a location abstraction.
|
SideEffectsAnalysis.LocationSummary | |
SideEffectsAnalysis.RawMotionEnvironment |
A low-level concrete environment that allows the client to specify
the environment nodes directly.
|
SideEffectsAnalysis.VariableUseDeclarationMap |
Maps NAME nodes that refer to variables to the NAME
nodes that declared them.
|
SideEffectsAnalysis.VisibilityLocationAbstraction |
A location abstraction based on the visibility of concrete locations.
|
SideEffectsAnalysis.VisibilityLocationAbstraction.VisibilityBasedEffectLocation |
An abstract effect location based the visibility of the
concrete storage location.
|
SimpleDefinitionFinder |
Simple name-based definition gatherer that implements
DefinitionProvider . |
SimpleRegion |
Simple region.
|
SourceFile |
An abstract representation of a source file that provides access to
language-neutral features.
|
SourceFile.AtUrl |
A source file at a URL where the code is only read into memory if absolutely
necessary.
|
SourceFile.Builder |
A builder interface for source files.
|
SourceFile.Generated |
A source file where the code will be dynamically generated
from the injected interface.
|
SourceFile.OnDisk |
A source file where the code is only read into memory if absolutely
necessary.
|
SourceFile.Preloaded |
A source file where the code has been preloaded.
|
SourceInformationAnnotator |
Annotates nodes with information from their original input file
before the compiler performs work that changes this information (such
as its original location, its original name, etc).
|
SourceMap |
Collects information mapping the generated (compiled) source back to
its original source for debugging purposes.
|
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.
|
StatementFusion |
Tries to fuse all the statements in a block into a one statement by using
COMMAs.
|
StrictModeCheck |
Checks that the code obeys the static restrictions of strict mode:
No use of "with".
|
StrictModeCheck.NonExternChecks |
Checks that are performed on non-extern code only.
|
StrictWarningsGuard |
All warnings should be reported as errors.
|
Strings |
Guava code that will eventually be open-sourced properly.
|
StripCode |
A pass for stripping a list of provided JavaScript object types.
|
SubstituteEs6Syntax |
An optimization that does peephole optimizations of ES6 code.
|
SuppressDocWarningsGuard |
Filters warnings based on in-code
@suppress annotations. |
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.DefaultRedeclarationHandler |
The default handler for duplicate declarations.
|
SyntheticAst |
An AST generated totally by the compiler.
|
TagNameToType |
Contains a mapping from HTML Element tag name to the javascript type of that element at runtime.
|
TemplateAstMatcher |
A matcher that can take an arbitrary AST and use it as a template to find
matches in another.
|
Tracer |
Tracer provides a simple way to trace the handling of a request.
|
Tracer |
GWT compatible no-op replacement for
Tracer |
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.Stat |
Statistics for a given tracer type
|
Tracer.ThreadTrace |
Stores a thread's Trace
|
TransformAMDToCJSModule |
Rewrites an AMD module https://github.com/amdjs/amdjs-api/wiki/AMD to a
CommonJS module.
|
TransformAMDToCJSModule.DefineCallbackReturnCallback |
Rewrites the return statement of the callback to be an assignment to
module.exports.
|
TransformAMDToCJSModule.RenameCallback |
Renames names;
|
TranspilationPasses |
Provides a single place to manage transpilation passes.
|
TypeCheck |
Checks the types of JS expressions against any declared type
information.
|
TypeCheck.SuggestionPair | |
TypedCodeGenerator |
A code generator that outputs type annotations for functions and
constructors.
|
TypedScope |
TypedScope contains information about variables and their types.
|
TypedScopeCreator |
Creates the symbol table of variables available in the current scope and
their types.
|
TypedScopeCreator.DiscoverEnumsAndTypedefs | |
TypedScopeCreator.FirstOrderFunctionAnalyzer |
Does a first-order function analysis that just looks at simple things
like what variables are escaped, and whether 'this' is used.
|
TypedScopeCreator.StubDeclaration |
A stub declaration without any type information.
|
TypedVar |
Several methods in this class, such as
isVar throw an exception when called. |
TypeInference |
Type inference within a script node or a function body, using the data-flow
analysis framework.
|
TypeInference.TemplateTypeReplacer | |
TypeInferencePass |
A compiler pass to run the type inference analysis.
|
TypeInferencePass.FirstScopeBuildingCallback | |
TypeMatchingStrategy.MatchResult |
The result of comparing two different
JSType instances. |
TypeTransformation |
A class for processing type transformation 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.
|
UnreachableCodeElimination |
Removes dead code from a parse tree.
|
UseSite |
Information about the context in which a Definition is used.
|
Var |
Used by
Scope to store information about variables. |
Var.Arguments |
A special subclass of Var used to distinguish "arguments" in the current
scope.
|
VarCheck |
Checks that all variables are declared, that file-private variables are
accessed only in the file that declares them, and that any var references
that cross module boundaries respect declared module dependencies.
|
VariableMap |
Stores the mapping from original variable name to new variable names.
|
VariableReferenceCheck |
Checks variables to see if they are referenced before their declaration, or
if they are redeclared in a way that is suspicious (i.e.
|
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.
|
VerboseMessageFormatter |
Verbose message formatter.
|
WarningsGuard |
Class that allows to flexibly manage what to do with a reported
warning/error.
|
WhitelistWarningsGuard |
An extension of
WarningsGuard that provides functionality to maintain
a list of warnings (white-list). |
XtbMessageBundle |
A MessageBundle that parses messages from an XML Translation Bundle (XTB)
file.
|
XtbMessageBundle.SecureEntityResolver |
A secure EntityResolver that returns an empty string in response to
any attempt to resolve an external entity.
|
Enum | Description |
---|---|
AbstractCommandLineRunner.JsSourceType |
Flag types for js source files.
|
AbstractCompiler.ConfigContext |
Represents the different contexts for which the compiler could have
distinct configurations.
|
AbstractCompiler.LifeCycleStage | |
AbstractMessageFormatter.Color | |
AnalyzePrototypeProperties.SymbolType | |
AnonymousFunctionNamingPolicy |
Strategies for how to do naming of anonymous functions that occur as
r-values in assignments and variable declarations.
|
CheckEventfulObjectDisposal.DisposalCheckingPolicy |
Policies to determine the disposal checking level.
|
CheckEventfulObjectDisposal.SeenType | |
CheckLevel |
Controls checking levels of certain options.
|
CheckLevelLegacy |
Enum used in flags to control the behavior of JS compiler checks.
|
CheckRequiresForConstructors.Mode | |
CodeGenerator.Context | |
CodePrinter.Format | |
CodingConvention.SubclassType |
Specify the kind of inheritance
|
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.SyntheticExternsPosition | |
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
|
ConformanceRules.ConformanceLevel |
Possible check check results
|
ControlFlowGraph.Branch |
The edge object for the control flow graph.
|
CoverageInstrumentationPass.CoverageReach | |
CssRenamingMap.Style |
Kind of renaming map
|
CustomPassExecutionTime |
Custom pass type.
|
DeadAssignmentsElimination.VariableLiveness | |
ErrorFormat |
Error formats available.
|
ExpressionDecomposer.DecompositionType | |
ExtractPrototypeMemberDeclarations.Pattern | |
FindExportableNodes.Mode | |
FunctionInjector.CallSiteType |
Supported call site types.
|
FunctionInjector.CanInlineResult | |
FunctionInjector.InliningMode |
The type of inlining to perform.
|
GlobalNamespace.Name.Type | |
GlobalNamespace.Ref.Type | |
InlineVariables.Mode | |
JsMessage.Style |
Message style that could be used for JS code parsing.
|
MinimizedCondition.MinimizationStyle |
Definitions of the style of minimization preferred.
|
NameAnalyzer.RefType |
Relationship between the two names.
|
NameAnalyzer.TriState |
Enum for saying a value can be true, false, or either (cleaner than using a
Boolean with null)
|
NodeUtil.ValueType | |
PeepholeSubstituteAlternateSyntax.FoldArrayAction | |
PhaseOptimizer.State |
When processing loopable passes in order, the PhaseOptimizer can be in one
of these two states.
|
ProcessTweaks.TweakFunction |
An enum of goog.tweak functions.
|
PropertyRenamingPolicy |
Policies to determine how properties should be renamed.
|
ReplaceIdGenerators.RenameStrategy | |
Requirement.Type |
Protobuf enum
jscomp.Requirement.Type |
ShowByPathWarningsGuard.ShowType |
Controls whether warnings should be restricted to a specified path or
suppressed within the specified path.
|
SideEffectsAnalysis.LocationAbstractionMode |
The type of location abstraction to use for this analysis.
|
SourceExcerptProvider.SourceExcerpt |
Source excerpt variety.
|
SourceMap.DetailLevel |
Source maps can be very large different levels of detail can be specified.
|
SourceMap.Format |
An enumeration of available source map formats
|
TypeMatchingStrategy |
The different strategies for matching the
JSType of nodes. |
VariableRenamingPolicy |
Policies to determine which variables should be renamed.
|
VariableVisibilityAnalysis.VariableVisibility | |
WarningLevel |
Convert the warnings level to an Options object.
|
WarningsGuard.Priority |
Priority
|
Exception | Description |
---|---|
AbstractCommandLineRunner.FlagUsageException |
An exception thrown when command-line flags are used incorrectly.
|
CheckConformance.InvalidRequirementSpec | |
CompilerOptionsPreprocessor.InvalidOptionsException |
Exception to indicate incompatible options in the CompilerOptions.
|
DataFlowAnalysis.MaxIterationsExceededException |
The exception to be thrown if the analysis has been running for a long
number of iterations.
|
JsMessageVisitor.MalformedException | |
JSModuleGraph.MissingModuleException |
Another exception class
|
JSModuleGraph.ModuleDependenceException |
Exception class for declaring when the modules being fed into a
JSModuleGraph as input aren't in dependence order, and so can't be
processed for caching of various dependency-related queries.
|