Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
com.google.javascript.jscomp.lint | |
com.google.javascript.refactoring |
Modifier and Type | Class and Description |
---|---|
class |
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.
|
Modifier and Type | Field and Description |
---|---|
private AbstractCompiler |
UnreachableCodeElimination.compiler |
private AbstractCompiler |
FindExportableNodes.compiler |
private AbstractCompiler |
DevirtualizePrototypeMethods.compiler |
private AbstractCompiler |
CheckMissingGetCssName.compiler |
private AbstractCompiler |
CheckConformance.compiler |
private AbstractCompiler |
RenameLabels.compiler |
private AbstractCompiler |
CoalesceVariableNames.compiler |
private AbstractCompiler |
StrictModeCheck.compiler |
private AbstractCompiler |
Es6RewriteGenerators.compiler |
private AbstractCompiler |
Es6RewriteGenerators.DecomposeYields.compiler |
private AbstractCompiler |
CompilerInput.compiler |
private AbstractCompiler |
CheckRegExp.compiler |
private AbstractCompiler |
CheckUnusedPrivateProperties.compiler |
private AbstractCompiler |
CheckGlobalNames.compiler |
(package private) AbstractCompiler |
AngularPass.compiler |
private AbstractCompiler |
CrossModuleCodeMotion.compiler |
private AbstractCompiler |
AmbiguateProperties.compiler |
private AbstractCompiler |
ImplicitNullabilityCheck.compiler |
private AbstractCompiler |
DeclaredGlobalExternsOnWindow.compiler |
private AbstractCompiler |
CheckAccessControls.compiler |
private AbstractCompiler |
ExternExportsPass.compiler
The parent compiler.
|
private AbstractCompiler |
ShadowVariables.compiler |
private AbstractCompiler |
ProcessDefines.compiler |
private AbstractCompiler |
ProcessDefines.CollectDefines.compiler |
private AbstractCompiler |
StripCode.compiler |
private AbstractCompiler |
ConstParamCheck.compiler |
private AbstractCompiler |
CheckJSDoc.compiler |
private AbstractCompiler |
SideEffectsAnalysis.compiler |
(package private) AbstractCompiler |
SideEffectsAnalysis.VisibilityLocationAbstraction.compiler |
private AbstractCompiler |
SideEffectsAnalysis.VariableUseDeclarationMap.compiler |
(package private) AbstractCompiler |
CoverageInstrumentationPass.compiler |
private AbstractCompiler |
ClosureOptimizePrimitives.compiler
Reference to the JS compiler
|
private AbstractCompiler |
FunctionNames.compiler |
private AbstractCompiler |
FunctionRewriter.compiler |
private AbstractCompiler |
PolymerClassRewriter.compiler |
private AbstractCompiler |
TypeCheck.compiler |
private AbstractCompiler |
DeadAssignmentsElimination.compiler |
private AbstractCompiler |
RewritePolyfills.compiler |
private AbstractCompiler |
RenameProperties.compiler |
private AbstractCompiler |
RescopeGlobalSymbols.compiler |
private AbstractCompiler |
FunctionTypeBuilder.compiler |
private AbstractCompiler |
ClosureRewriteModule.compiler |
private AbstractCompiler |
PolymerPass.compiler |
private AbstractCompiler |
FunctionToBlockMutator.compiler |
private AbstractCompiler |
Es6SyntacticScopeCreator.compiler |
private AbstractCompiler |
CheckSideEffects.compiler |
private AbstractCompiler |
CheckSideEffects.StripProtection.compiler |
private AbstractCompiler |
SymbolTable.PropertyRefCollector.compiler |
private AbstractCompiler |
SymbolTable.ThisRefCollector.compiler |
private AbstractCompiler |
ObjectLitAssignmentShortening.compiler |
(package private) AbstractCompiler |
ObjectLitAssignmentShortening.ObjectLitShorteningCallback.compiler |
(package private) AbstractCompiler |
NameReferenceGraph.compiler |
private AbstractCompiler |
InlineObjectLiterals.compiler |
private AbstractCompiler |
VariableReferenceCheck.compiler |
private AbstractCompiler |
CollectFileOverviewVisibility.compiler |
private AbstractCompiler |
NameAnonymousFunctionsMapped.compiler |
private AbstractCompiler |
CombinedCompilerPass.compiler |
private AbstractCompiler |
PureFunctionIdentifier.compiler |
private AbstractCompiler |
PureFunctionIdentifier.Driver.compiler |
private AbstractCompiler |
TypeInferencePass.compiler |
private AbstractCompiler |
Es6RewriteBlockScopedDeclaration.compiler |
private AbstractCompiler |
MarkNoSideEffectCalls.compiler |
private AbstractCompiler |
ClosureCheckModule.compiler |
private AbstractCompiler |
ConvertToDottedProperties.compiler |
private AbstractCompiler |
CollapseVariableDeclarations.compiler
Reference to JS Compiler
|
private AbstractCompiler |
ReplaceCssNames.compiler |
private AbstractCompiler |
TransformAMDToCJSModule.compiler |
private AbstractCompiler |
SyntacticScopeCreator.compiler |
private AbstractCompiler |
RemoveUnusedVars.compiler |
private AbstractCompiler |
RemoveUnusedVars.CallSiteOptimizer.compiler |
private AbstractCompiler |
ExtractPrototypeMemberDeclarations.compiler |
private AbstractCompiler |
Es6SplitVariableDeclarations.compiler |
private AbstractCompiler |
MoveFunctionDeclarations.compiler |
private AbstractCompiler |
NewTypeInference.compiler |
(package private) AbstractCompiler |
NewTypeInference.WarningReporter.compiler |
private AbstractCompiler |
GatherExternProperties.compiler |
private AbstractCompiler |
GatherRawExports.compiler |
private AbstractCompiler |
InstrumentFunctions.compiler |
private AbstractCompiler |
InlineFunctions.compiler |
private AbstractCompiler |
OptimizeParameters.compiler |
private AbstractCompiler |
CleanupPasses.MemoizedScopeCleanupPass.compiler |
(package private) AbstractCompiler |
MinimizeExitPoints.compiler |
private AbstractCompiler |
NameAnonymousFunctions.compiler |
private AbstractCompiler |
AnalyzePrototypeProperties.compiler |
private AbstractCompiler |
ErrorPass.compiler |
private AbstractCompiler |
ClosureRewriteClass.compiler |
private AbstractCompiler |
CallGraph.compiler |
private AbstractCompiler |
ReplaceStrings.compiler |
private AbstractCompiler |
TypeInference.compiler |
private AbstractCompiler |
ObjectPropertyStringPreprocess.compiler |
private AbstractCompiler |
Es6ToEs3Converter.compiler |
private AbstractCompiler |
CheckMissingReturn.compiler |
private AbstractCompiler |
ChainCalls.compiler |
private AbstractCompiler |
DisambiguatePrivateProperties.compiler |
private AbstractCompiler |
ProcessTweaks.compiler |
private AbstractCompiler |
TypeValidator.compiler |
private AbstractCompiler |
ProcessClosurePrimitives.compiler |
private AbstractCompiler |
RuntimeTypeCheck.compiler |
private AbstractCompiler |
RuntimeTypeCheck.AddMarkers.compiler |
private AbstractCompiler |
SanityCheck.compiler |
private AbstractCompiler |
Es6RenameVariablesInParamLists.compiler |
private AbstractCompiler |
PolymerPassSuppressBehaviors.compiler |
private AbstractCompiler |
VariableVisibilityAnalysis.compiler |
private AbstractCompiler |
MustBeReachingVariableDef.compiler |
private AbstractCompiler |
Normalize.compiler |
private AbstractCompiler |
Normalize.PropagateConstantAnnotationsOverVars.compiler |
private AbstractCompiler |
Normalize.VerifyConstants.compiler |
private AbstractCompiler |
Normalize.NormalizeStatements.compiler |
private AbstractCompiler |
NameAnalyzer.compiler
Reference to the JS compiler
|
private AbstractCompiler |
CoverageInstrumentationCallback.compiler |
private AbstractCompiler |
ObjectPropertyStringPostprocess.compiler |
private AbstractCompiler |
PhaseOptimizer.compiler |
private AbstractCompiler |
CollapseAnonymousFunctions.compiler |
private AbstractCompiler |
InlineProperties.compiler |
private AbstractCompiler |
PolymerBehaviorExtractor.compiler |
private AbstractCompiler |
DefaultPassConfig.GlobalTypeResolver.compiler |
private AbstractCompiler |
Es6ExternsCheck.compiler |
private AbstractCompiler |
PeepholeOptimizationsPass.compiler |
private AbstractCompiler |
ReferenceCollectingCallback.compiler
JavaScript compiler to use in traversing.
|
private AbstractCompiler |
AstValidator.compiler |
private AbstractCompiler |
CheckEventfulObjectDisposal.compiler |
private AbstractCompiler |
CheckGlobalThis.compiler |
private AbstractCompiler |
ExportTestFunctions.compiler |
(package private) AbstractCompiler |
J2clPropertyInlinerPass.compiler |
private AbstractCompiler |
ClosureCodeRemoval.compiler
Reference to the JS compiler
|
private AbstractCompiler |
NodeTraversal.compiler |
private AbstractCompiler |
NameReferenceGraphConstruction.compiler |
private AbstractCompiler |
JsdocToEs6TypedConverter.compiler |
private AbstractCompiler |
ExpressionDecomposer.compiler |
private AbstractCompiler |
OptimizeReturns.compiler |
private AbstractCompiler |
InferConsts.compiler |
private AbstractCompiler |
AbstractPeepholeOptimization.compiler |
private AbstractCompiler |
CheckDebuggerStatement.compiler |
private AbstractCompiler |
CrossModuleMethodMotion.compiler |
private AbstractCompiler |
Es6ToEs3ClassSideInheritance.compiler |
private AbstractCompiler |
CollapseProperties.compiler |
(package private) AbstractCompiler |
RewriteBindThis.compiler |
private AbstractCompiler |
GatherSideEffectSubexpressionsCallback.compiler |
private AbstractCompiler |
GatherSideEffectSubexpressionsCallback.GetReplacementSideEffectSubexpressions.compiler |
private AbstractCompiler |
RenameVars.compiler |
private AbstractCompiler |
CheckRequiresForConstructors.compiler |
private AbstractCompiler |
CheckProvides.compiler |
private AbstractCompiler |
ExpandJqueryAliases.compiler |
private AbstractCompiler |
ReplaceIdGenerators.compiler |
private AbstractCompiler |
GlobalTypeInfo.compiler |
private AbstractCompiler |
ConstCheck.compiler |
private AbstractCompiler |
FieldCleanupPass.compiler |
(package private) AbstractCompiler |
ConformanceRules.AbstractRule.compiler |
private AbstractCompiler |
TemplateAstMatcher.compiler |
private AbstractCompiler |
DisambiguateProperties.compiler |
private AbstractCompiler |
GlobalVarReferenceMap.GlobalVarRefCleanupPass.compiler |
private AbstractCompiler |
Es6ConvertSuper.compiler |
private AbstractCompiler |
CheckUnreachableCode.compiler |
private AbstractCompiler |
VarCheck.compiler |
private AbstractCompiler |
SimpleDefinitionFinder.compiler |
private AbstractCompiler |
GlobalNamespace.compiler |
private AbstractCompiler |
TypedScopeCreator.compiler |
private AbstractCompiler |
TypedScopeCreator.FirstOrderFunctionAnalyzer.compiler |
private AbstractCompiler |
InferJSDocInfo.compiler |
private AbstractCompiler |
FlowSensitiveInlineVariables.compiler
Implementation:
This pass first perform a traversal to gather a list of Candidates that
could be inlined using
FlowSensitiveInlineVariables.GatherCandiates . |
private AbstractCompiler |
GenerateExports.compiler |
private AbstractCompiler |
InlineVariables.compiler |
private AbstractCompiler |
Denormalize.compiler |
private AbstractCompiler |
OptimizeArgumentsArray.compiler |
private AbstractCompiler |
Es6RewriteArrowFunction.compiler |
private AbstractCompiler |
LineNumberCheck.compiler |
private AbstractCompiler |
PrepareAst.compiler |
private AbstractCompiler |
DartSuperAccessorsPass.compiler |
(package private) AbstractCompiler |
JsMessageVisitor.compiler |
private AbstractCompiler |
MakeDeclaredNamesUnique.ContextualRenameInverter.compiler |
private AbstractCompiler |
J2clPass.compiler |
private AbstractCompiler |
CreateSyntheticBlocks.compiler |
private AbstractCompiler |
ControlFlowAnalysis.compiler
Based roughly on the first few pages of
"Declarative Intraprocedural Flow Analysis of Java Source Code by
Nilsson-Nyman, Hedin, Magnusson & Ekman",
this pass computes the control flow graph from the AST.
|
private AbstractCompiler |
InjectEs6RuntimeLibrary.compiler |
private AbstractCompiler |
RemoveUnusedClassProperties.compiler |
private AbstractCompiler |
InlineAliases.compiler |
(package private) AbstractCompiler |
RhinoErrorReporter.compiler |
private AbstractCompiler |
OptimizeCalls.compiler |
private AbstractCompiler |
Es6RewriteDestructuring.compiler |
private AbstractCompiler |
TypeTransformation.compiler |
private AbstractCompiler |
Es6TypedToEs6Converter.compiler |
(package private) AbstractCompiler |
MethodCompilerPass.compiler |
private AbstractCompiler |
FunctionInjector.compiler |
private AbstractCompiler |
ScopedAliases.compiler |
private AbstractCompiler |
RemoveUnusedPrototypeProperties.compiler |
private AbstractCompiler |
SubstituteEs6Syntax.compiler |
Modifier and Type | Field and Description |
---|---|
private static com.google.common.reflect.TypeToken<AbstractCompiler> |
ConformanceRules.CustomRuleProxy.COMPILER_TYPE |
Modifier and Type | Method and Description |
---|---|
AbstractCompiler |
NodeTraversal.getCompiler() |
Modifier and Type | Method and Description |
---|---|
private static Node |
Es6ToEs3Converter.arrayFromIterable(AbstractCompiler compiler,
Node iterable)
Returns a call to $jscomp.arrayFromIterable with
iterable as its argument. |
(package private) void |
AbstractPeepholeOptimization.beginTraversal(AbstractCompiler compiler)
Informs the optimization that a traversal will begin.
|
private static Node |
Es6ToEs3Converter.callEs6RuntimeFunction(AbstractCompiler compiler,
Node iterable,
java.lang.String function) |
private static boolean |
NodeUtil.checkForStateChangeHelper(Node n,
boolean checkForNewObjects,
AbstractCompiler compiler)
Returns true if some node in n's subtree changes application state.
|
private static void |
CheckConformance.checkRequirementList(AbstractCompiler compiler,
Requirement requirement,
java.lang.String field) |
private static HotSwapCompilerPass |
DefaultPassConfig.combineChecks(AbstractCompiler compiler,
java.util.List<NodeTraversal.Callback> callbacks)
Executes the given callbacks with a
CombinedCompilerPass . |
(package private) static void |
DataFlowAnalysis.computeEscaped(Scope jsScope,
java.util.Set<Var> escaped,
AbstractCompiler compiler)
Compute set of escaped variables.
|
protected abstract CompilerPass |
PassFactory.create(AbstractCompiler compiler)
Creates a new compiler pass to be run.
|
protected abstract HotSwapCompilerPass |
PassFactory.HotSwapPassFactory.create(AbstractCompiler compiler) |
(package private) static void |
NameAnalyzer.createEmptyReport(AbstractCompiler compiler,
java.lang.String reportPath) |
private CheckConformance.Rule |
ConformanceRules.CustomRuleProxy.createRule(AbstractCompiler compiler,
Requirement requirement) |
(package private) void |
AbstractPeepholeOptimization.endTraversal(AbstractCompiler compiler)
Informs the optimization that a traversal has completed.
|
void |
NodeTraversal.FunctionCallback.enterFunction(AbstractCompiler compiler,
Node fnRoot) |
(package private) static JSType |
ConformanceRules.ConformanceUtil.evaluateTypeString(AbstractCompiler compiler,
java.lang.String expression) |
(package private) static PolymerClassDefinition |
PolymerClassDefinition.extractFromCallNode(Node callNode,
AbstractCompiler compiler,
GlobalNamespace globalNames)
Validates the class definition and if valid, destructively extracts the class definition from
the AST.
|
(package private) void |
SymbolTable.fillJSDocInfo(AbstractCompiler compiler,
Node externs,
Node root)
Index JSDocInfo.
|
(package private) void |
SymbolTable.fillPropertySymbols(AbstractCompiler compiler,
Node externs,
Node root)
Create symbols and references for all properties of types in
this symbol table.
|
(package private) void |
SymbolTable.fillSymbolVisibility(AbstractCompiler compiler,
Node externs,
Node root)
Records the visibility of each symbol.
|
(package private) void |
SymbolTable.fillThisReferences(AbstractCompiler compiler,
Node externs,
Node root)
Fill in references to "this" variables.
|
(package private) void |
SymbolTable.findScopes(AbstractCompiler compiler,
Node externs,
Node root)
Finds all the scopes and adds them to this symbol table.
|
static ErrorReporter |
RhinoErrorReporter.forOldRhino(AbstractCompiler compiler) |
(package private) static boolean |
NodeUtil.functionCallHasSideEffects(Node callNode,
AbstractCompiler compiler)
Returns true if calls to this function have side effects.
|
Node |
SourceAst.getAstRoot(AbstractCompiler compiler)
Gets the root node of the AST for the source file this represents.
|
Node |
CompilerInput.getAstRoot(AbstractCompiler compiler) |
Node |
JsAst.getAstRoot(AbstractCompiler compiler) |
Node |
SyntheticAst.getAstRoot(AbstractCompiler compiler) |
(package private) static CompilerPass |
MakeDeclaredNamesUnique.getContextualRenameInverter(AbstractCompiler compiler) |
FeatureSet |
JsAst.getFeatures(AbstractCompiler compiler) |
protected HotSwapCompilerPass |
PassFactory.getHotSwapPass(AbstractCompiler compiler)
Any factory whose CompilerPass has a corresponding hot-swap version should
override this.
|
protected HotSwapCompilerPass |
PassFactory.HotSwapPassFactory.getHotSwapPass(AbstractCompiler compiler) |
(package private) static JSType |
ConformanceRules.ConformanceUtil.getJSType(AbstractCompiler compiler,
Node n)
This method gets the JSType from the Node argument and verifies that it is
present.
|
(package private) static JSType |
ConformanceRules.ConformanceUtil.getNativeType(AbstractCompiler compiler,
JSTypeNative typeId) |
private static Node |
Es6TypedToEs6Converter.getQualifiedMemberAccess(AbstractCompiler compiler,
Node member,
Node staticAccess,
Node instanceAccess)
Constructs a Node that represents an access to the given class member, qualified by either the
static or the instance access context, depending on whether the member is static.
|
(package private) static JSTypeExpression |
PolymerPassStaticUtils.getTypeFromProperty(PolymerPass.MemberDefinition property,
AbstractCompiler compiler)
Gets the JSTypeExpression for a given property using its "type" key.
|
private static CheckConformance.Rule |
CheckConformance.initRule(AbstractCompiler compiler,
Requirement requirement) |
private static com.google.common.collect.ImmutableList<CheckConformance.Rule> |
CheckConformance.initRules(AbstractCompiler compiler,
com.google.common.collect.ImmutableList<ConformanceConfig> configs)
Build the data structures need by this pass from the provided
configurations.
|
(package private) static Node |
FunctionArgumentInjector.inject(AbstractCompiler compiler,
Node node,
Node parent,
java.util.Map<java.lang.String,Node> replacements)
With the map provided, replace the names with expression trees.
|
(package private) static Node |
FunctionArgumentInjector.inject(AbstractCompiler compiler,
Node node,
Node parent,
java.util.Map<java.lang.String,Node> replacements,
boolean replaceThis) |
static boolean |
ExpandJqueryAliases.isJqueryExtendCall(Node n,
java.lang.String qname,
AbstractCompiler compiler)
Check that Node n is a call to one of the jQuery.extend methods that we
can expand.
|
(package private) static boolean |
NodeUtil.isPropertyTest(AbstractCompiler compiler,
Node propAccess)
Determines whether this node is testing for the existence of a property.
|
(package private) static InferJSDocInfo |
PassConfig.makeInferJsDocInfo(AbstractCompiler compiler) |
(package private) static Node |
Es6ToEs3Converter.makeIterator(AbstractCompiler compiler,
Node iterable)
Returns a call to
$jscomp.makeIterator with iterable as its argument. |
(package private) static AmbiguateProperties |
AmbiguateProperties.makePassForTesting(AbstractCompiler compiler,
char[] reservedCharacters) |
(package private) TypeCheck |
PassConfig.makeTypeCheck(AbstractCompiler compiler)
Create a type-checking pass.
|
(package private) static SyntacticScopeCreator |
SyntacticScopeCreator.makeTyped(AbstractCompiler compiler) |
(package private) TypeInferencePass |
PassConfig.makeTypeInference(AbstractCompiler compiler)
Create a type inference pass.
|
(package private) static SyntacticScopeCreator |
SyntacticScopeCreator.makeUntyped(AbstractCompiler compiler) |
(package private) static SyntacticScopeCreator |
SyntacticScopeCreator.makeUntypedWithRedeclHandler(AbstractCompiler compiler,
SyntacticScopeCreator.RedeclarationHandler redeclarationHandler) |
(package private) void |
DefaultPassConfig.maybeInitializePreprocessorSymbolTable(AbstractCompiler compiler) |
(package private) static boolean |
NodeUtil.mayEffectMutableState(Node n,
AbstractCompiler compiler) |
static boolean |
NodeUtil.mayHaveSideEffects(Node n,
AbstractCompiler compiler) |
(package private) static java.util.List<Requirement> |
CheckConformance.mergeRequirements(AbstractCompiler compiler,
java.util.List<ConformanceConfig> configs)
Gets requirements from all configs.
|
private static Node |
NodeUtil.newName(AbstractCompiler compiler,
java.lang.String name) |
(package private) static Node |
NodeUtil.newName(AbstractCompiler compiler,
java.lang.String name,
Node srcref)
Creates a new node representing an *existing* name, copying over the source
location information from the basis node.
|
(package private) static Node |
NodeUtil.newName(AbstractCompiler compiler,
java.lang.String name,
Node basisNode,
java.lang.String originalName)
Creates a new node representing an *existing* name, copying over the source
location information from the basis node and assigning the given original
name to the node.
|
static Node |
NodeUtil.newPropertyAccess(AbstractCompiler compiler,
Node context,
java.lang.String name)
Creates a property access on the
context tree. |
static Node |
NodeUtil.newQName(AbstractCompiler compiler,
java.lang.String name)
Creates a node representing a qualified name.
|
(package private) static Node |
NodeUtil.newQName(AbstractCompiler compiler,
java.lang.String name,
Node basisNode,
java.lang.String originalName)
Creates a node representing a qualified name, copying over the source
location information from the basis node and assigning the given original
name to the node.
|
static Node |
NodeUtil.newQNameDeclaration(AbstractCompiler compiler,
java.lang.String name,
Node value,
JSDocInfo info)
Creates a node representing a qualified name.
|
(package private) static boolean |
NodeUtil.nodeTypeMayHaveSideEffects(Node n,
AbstractCompiler compiler) |
(package private) static void |
Normalize.normalizeSyntheticCode(AbstractCompiler compiler,
Node js,
java.lang.String prefix) |
private void |
JsAst.parse(AbstractCompiler compiler) |
(package private) static Node |
Normalize.parseAndNormalizeTestCode(AbstractCompiler compiler,
java.lang.String code) |
(package private) void |
PassConfig.patchGlobalTypedScope(AbstractCompiler compiler,
Node scriptRoot)
Regenerates the top scope potentially only for a sub-tree of AST and then
copies information for the old global scope.
|
(package private) void |
PassConfig.regenerateGlobalTypedScope(AbstractCompiler compiler,
Node root)
Regenerates the top scope from scratch.
|
void |
AnalyzePrototypeProperties.Symbol.remove(AbstractCompiler compiler)
Remove the declaration from the AST.
|
void |
AnalyzePrototypeProperties.GlobalFunction.remove(AbstractCompiler compiler) |
void |
AnalyzePrototypeProperties.AssignmentProperty.remove(AbstractCompiler compiler) |
void |
AnalyzePrototypeProperties.LiteralProperty.remove(AbstractCompiler compiler) |
private static void |
CheckConformance.reportInvalidRequirement(AbstractCompiler compiler,
Requirement requirement,
java.lang.String reason) |
private VariableMap |
DefaultPassConfig.runVariableRenaming(AbstractCompiler compiler,
VariableMap prevVariableMap,
Node externs,
Node root) |
void |
CompilerInput.setCompiler(AbstractCompiler compiler)
Sets an abstract compiler for doing parsing.
|
(package private) static void |
PolymerPassStaticUtils.switchDollarSignPropsToBrackets(Node objLit,
AbstractCompiler compiler)
Switches all "this.$.foo" to "this.$['foo']".
|
(package private) static void |
CombinedCompilerPass.traverse(AbstractCompiler compiler,
Node root,
java.util.List<NodeTraversal.Callback> callbacks) |
static void |
NodeTraversal.traverse(AbstractCompiler compiler,
Node root,
NodeTraversal.Callback cb)
Deprecated.
Use traverseEs6 whenever possible.
|
static void |
NodeTraversal.traverseChangedFunctions(AbstractCompiler compiler,
NodeTraversal.FunctionCallback callback)
Traversal for passes that work only on changed functions.
|
static void |
NodeTraversal.traverseEs6(AbstractCompiler compiler,
Node root,
NodeTraversal.Callback cb)
Traverses using the ES6SyntacticScopeCreator
|
static void |
NodeTraversal.traverseRoots(AbstractCompiler compiler,
NodeTraversal.Callback cb,
Node externs,
Node root)
Deprecated.
|
static void |
NodeTraversal.traverseRootsEs6(AbstractCompiler compiler,
NodeTraversal.Callback cb,
Node externs,
Node root) |
static void |
NodeTraversal.traverseRootsTyped(AbstractCompiler compiler,
NodeTraversal.Callback cb,
Node externs,
Node root) |
static void |
NodeTraversal.traverseTyped(AbstractCompiler compiler,
Node root,
NodeTraversal.Callback cb) |
(package private) static boolean |
ConformanceRules.ConformanceUtil.validateCall(AbstractCompiler compiler,
Node callOrNew,
FunctionType functionType,
boolean isCallInvocation)
Validate the parameters and the 'this' type, of a new or call.
|
private static boolean |
ConformanceRules.ConformanceUtil.validateParameterList(AbstractCompiler compiler,
Node callOrNew,
FunctionType functionType,
boolean isCallInvocation) |
Constructor and Description |
---|
AbstractRule(AbstractCompiler compiler,
Requirement requirement) |
AbstractTypeRestrictionRule(AbstractCompiler compiler,
Requirement requirement) |
AddMarkers(AbstractCompiler compiler) |
AliasStrings(AbstractCompiler compiler,
JSModuleGraph moduleGraph,
java.util.Set<java.lang.String> strings,
java.lang.String blacklistRegex,
boolean outputStringUsage) |
AmbiguateProperties(AbstractCompiler compiler,
char[] reservedCharacters) |
AnalyzePrototypeProperties(AbstractCompiler compiler,
JSModuleGraph moduleGraph,
boolean canModifyExterns,
boolean anchorUnusedVars)
Creates a new pass for analyzing prototype properties.
|
AngularPass(AbstractCompiler compiler) |
AstValidator(AbstractCompiler compiler) |
AstValidator(AbstractCompiler compiler,
AstValidator.ViolationHandler handler) |
BanExpose(AbstractCompiler compiler,
Requirement requirement) |
BanGlobalVars(AbstractCompiler compiler,
Requirement requirement) |
BannedCodePattern(AbstractCompiler compiler,
Requirement requirement) |
BannedDependency(AbstractCompiler compiler,
Requirement requirement) |
BannedName(AbstractCompiler compiler,
Requirement requirement) |
BannedProperty(AbstractCompiler compiler,
Requirement requirement) |
BanNullDeref(AbstractCompiler compiler,
Requirement requirement) |
BanThrowOfNonErrorTypes(AbstractCompiler compiler,
Requirement requirement) |
BanUnknownDirectThisPropsReferences(AbstractCompiler compiler,
Requirement requirement) |
BanUnknownThis(AbstractCompiler compiler,
Requirement requirement) |
BanUnknownTypedClassPropsReferences(AbstractCompiler compiler,
Requirement requirement) |
BanUnresolvedType(AbstractCompiler compiler,
Requirement requirement) |
CallGraph(AbstractCompiler compiler)
Creates a call graph object support both forward and backward lookups.
|
CallGraph(AbstractCompiler compiler,
boolean computeForwardGraph,
boolean computeBackwardGraph)
Creates a call graph object supporting the specified lookups.
|
CallSiteOptimizer(AbstractCompiler compiler,
SimpleDefinitionFinder defFinder) |
ChainCalls(AbstractCompiler compiler) |
CheckAccessControls(AbstractCompiler compiler,
boolean enforceCodingConventions) |
CheckConformance(AbstractCompiler compiler,
com.google.common.collect.ImmutableList<ConformanceConfig> configs) |
CheckDebuggerStatement(AbstractCompiler compiler) |
CheckEventfulObjectDisposal(AbstractCompiler compiler,
CheckEventfulObjectDisposal.DisposalCheckingPolicy checkingPolicy) |
CheckGlobalNames(AbstractCompiler compiler,
CheckLevel level)
Creates a pass to check global name references at the given warning level.
|
CheckGlobalThis(AbstractCompiler compiler) |
CheckJSDoc(AbstractCompiler compiler) |
CheckMissingGetCssName(AbstractCompiler compiler,
CheckLevel level,
java.lang.String blacklistRegex) |
CheckMissingReturn(AbstractCompiler compiler) |
CheckProvides(AbstractCompiler compiler) |
CheckRegExp(AbstractCompiler compiler) |
CheckRequiresForConstructors(AbstractCompiler compiler,
CheckRequiresForConstructors.Mode mode) |
CheckSideEffects(AbstractCompiler compiler,
boolean report,
boolean protectSideEffectFreeCode) |
CheckUnreachableCode(AbstractCompiler compiler) |
CheckUnusedPrivateProperties(AbstractCompiler compiler) |
ClosureCheckModule(AbstractCompiler compiler) |
ClosureCodeRemoval(AbstractCompiler compiler,
boolean removeAbstractMethods,
boolean removeAssertionCalls)
Creates a Closure code remover.
|
ClosureOptimizePrimitives(AbstractCompiler compiler) |
ClosureRewriteClass(AbstractCompiler compiler) |
ClosureRewriteModule(AbstractCompiler compiler) |
CoalesceVariableNames(AbstractCompiler compiler,
boolean usePseudoNames) |
CollapseAnonymousFunctions(AbstractCompiler compiler) |
CollapseProperties(AbstractCompiler compiler) |
CollapseVariableDeclarations(AbstractCompiler compiler) |
CollectDefines(AbstractCompiler compiler,
java.util.List<GlobalNamespace.Name> listOfDefines) |
CollectFileOverviewVisibility(AbstractCompiler compiler) |
CombinedCompilerPass(AbstractCompiler compiler,
java.util.List<NodeTraversal.Callback> callbacks) |
CombinedCompilerPass(AbstractCompiler compiler,
NodeTraversal.Callback... callbacks)
Creates a combined compiler pass.
|
ConstCheck(AbstractCompiler compiler)
Creates an instance.
|
ConstParamCheck(AbstractCompiler compiler) |
ContextualRenameInverter(AbstractCompiler compiler) |
ControlFlowAnalysis(AbstractCompiler compiler,
boolean shouldTraverseFunctionsAndClasses,
boolean edgeAnnotations)
Constructor.
|
ConvertToDottedProperties(AbstractCompiler compiler) |
CoverageInstrumentationCallback(AbstractCompiler compiler,
java.util.Map<java.lang.String,FileInstrumentationData> instrumentationData,
CoverageInstrumentationPass.CoverageReach reach) |
CoverageInstrumentationPass(AbstractCompiler compiler,
CoverageInstrumentationPass.CoverageReach reach) |
CreateSyntheticBlocks(AbstractCompiler compiler,
java.lang.String startMarkerName,
java.lang.String endMarkerName) |
CrossModuleCodeMotion(AbstractCompiler compiler,
JSModuleGraph graph,
boolean parentModuleCanSeeSymbolsDeclaredInChildren)
Creates an instance.
|
CrossModuleMethodMotion(AbstractCompiler compiler,
CrossModuleMethodMotion.IdGenerator idGenerator,
boolean canModifyExterns,
boolean noStubFunctions)
Creates a new pass for moving prototype properties.
|
CustomRuleProxy(AbstractCompiler compiler,
Requirement requirement) |
DartSuperAccessorsPass(AbstractCompiler compiler) |
DeadAssignmentsElimination(AbstractCompiler compiler) |
DeclaredGlobalExternsOnWindow(AbstractCompiler compiler) |
DecomposeYields(AbstractCompiler compiler) |
Denormalize(AbstractCompiler compiler) |
DevirtualizePrototypeMethods(AbstractCompiler compiler) |
DisambiguatePrivateProperties(AbstractCompiler compiler) |
DisambiguateProperties(AbstractCompiler compiler,
java.util.Map<java.lang.String,CheckLevel> propertiesToErrorFor) |
Driver(AbstractCompiler compiler,
java.lang.String reportPath,
boolean useNameReferenceGraph) |
ErrorPass(AbstractCompiler compiler,
DiagnosticType error) |
ErrorPass(AbstractCompiler compiler,
JSError error) |
Es6ConvertSuper(AbstractCompiler compiler) |
Es6ExternsCheck(AbstractCompiler compiler) |
Es6RenameVariablesInParamLists(AbstractCompiler compiler) |
Es6RewriteArrowFunction(AbstractCompiler compiler) |
Es6RewriteBlockScopedDeclaration(AbstractCompiler compiler) |
Es6RewriteDestructuring(AbstractCompiler compiler) |
Es6RewriteGenerators(AbstractCompiler compiler) |
Es6SplitVariableDeclarations(AbstractCompiler compiler) |
Es6SyntacticScopeCreator(AbstractCompiler compiler) |
Es6SyntacticScopeCreator(AbstractCompiler compiler,
SyntacticScopeCreator.RedeclarationHandler redeclarationHandler) |
Es6ToEs3ClassSideInheritance(AbstractCompiler compiler) |
Es6ToEs3Converter(AbstractCompiler compiler) |
Es6TypedToEs6Converter(AbstractCompiler compiler) |
ExpandJqueryAliases(AbstractCompiler compiler) |
ExportTestFunctions(AbstractCompiler compiler,
java.lang.String exportSymbolFunction,
java.lang.String exportPropertyFunction)
Creates a new export test functions compiler pass.
|
ExpressionDecomposer(AbstractCompiler compiler,
com.google.common.base.Supplier<java.lang.String> safeNameIdSupplier,
java.util.Set<java.lang.String> constNames,
Scope scope) |
ExternExportsPass(AbstractCompiler compiler)
Creates an instance.
|
ExtractMessagesVisitor(AbstractCompiler compiler) |
ExtractPrototypeMemberDeclarations(AbstractCompiler compiler,
ExtractPrototypeMemberDeclarations.Pattern pattern) |
FieldCleanupPass(AbstractCompiler compiler) |
FindExportableNodes(AbstractCompiler compiler,
boolean allowLocalExports) |
FirstOrderFunctionAnalyzer(AbstractCompiler compiler,
java.util.Map<Node,FunctionTypeBuilder.AstFunctionContents> outParam) |
FlowSensitiveInlineVariables(AbstractCompiler compiler) |
FunctionInjector(AbstractCompiler compiler,
com.google.common.base.Supplier<java.lang.String> safeNameIdSupplier,
boolean allowDecomposition,
boolean assumeStrictThis,
boolean assumeMinimumCapture) |
FunctionNames(AbstractCompiler compiler) |
FunctionRewriter(AbstractCompiler compiler) |
FunctionToBlockMutator(AbstractCompiler compiler,
com.google.common.base.Supplier<java.lang.String> safeNameIdSupplier) |
FunctionTypeBuilder(java.lang.String fnName,
AbstractCompiler compiler,
Node errorRoot,
TypedScope scope) |
GatherExternProperties(AbstractCompiler compiler) |
GatherRawExports(AbstractCompiler compiler) |
GatherSideEffectSubexpressionsCallback(AbstractCompiler compiler,
GatherSideEffectSubexpressionsCallback.SideEffectAccumulator accumulator) |
GenerateExports(AbstractCompiler compiler,
boolean allowNonGlobalExports,
java.lang.String exportSymbolFunction,
java.lang.String exportPropertyFunction)
Creates a new generate exports compiler pass.
|
GetReplacementSideEffectSubexpressions(AbstractCompiler compiler,
java.util.List<Node> replacements)
Creates the accumulator.
|
GlobalNamespace(AbstractCompiler compiler,
Node root)
Creates an instance that may emit warnings when building the namespace.
|
GlobalNamespace(AbstractCompiler compiler,
Node externsRoot,
Node root)
Creates an instance that may emit warnings when building the namespace.
|
GlobalTypeInfo(AbstractCompiler compiler) |
GlobalTypeResolver(AbstractCompiler compiler) |
GlobalVarRefCleanupPass(AbstractCompiler compiler) |
ImplicitNullabilityCheck(AbstractCompiler compiler) |
InferConsts(AbstractCompiler compiler) |
InferJSDocInfo(AbstractCompiler compiler) |
InferredConstCheck(AbstractCompiler compiler,
Requirement requirement) |
InjectEs6RuntimeLibrary(AbstractCompiler compiler) |
InlineAliases(AbstractCompiler compiler) |
InlineFunctions(AbstractCompiler compiler,
com.google.common.base.Supplier<java.lang.String> safeNameIdSupplier,
boolean inlineGlobalFunctions,
boolean inlineLocalFunctions,
boolean blockFunctionInliningEnabled,
boolean assumeStrictThis,
boolean assumeMinimumCapture,
int maxSizeAfterInlining) |
InlineObjectLiterals(AbstractCompiler compiler,
com.google.common.base.Supplier<java.lang.String> safeNameIdSupplier) |
InlineProperties(AbstractCompiler compiler) |
InlineSimpleMethods(AbstractCompiler compiler) |
InlineVariables(AbstractCompiler compiler,
InlineVariables.Mode mode,
boolean inlineAllStrings) |
InstrumentFunctions(AbstractCompiler compiler,
FunctionNames functionNames,
Instrumentation template,
java.lang.String appNameStr)
Creates an instrument functions compiler pass.
|
J2clPass(AbstractCompiler compiler) |
J2clPropertyInlinerPass(AbstractCompiler compiler) |
JsdocToEs6TypedConverter(AbstractCompiler compiler) |
JsMessageVisitor(AbstractCompiler compiler,
boolean needToCheckDuplications,
JsMessage.Style style,
JsMessage.IdGenerator idGenerator)
Creates JS message visitor.
|
LineNumberCheck(AbstractCompiler compiler) |
LiveVariablesAnalysis(ControlFlowGraph<Node> cfg,
Scope jsScope,
AbstractCompiler compiler) |
MarkNoSideEffectCalls(AbstractCompiler compiler) |
MaybeReachingVariableUse(ControlFlowGraph<Node> cfg,
Scope jsScope,
AbstractCompiler compiler) |
MemoizedScopeCleanupPass(AbstractCompiler compiler) |
MethodCompilerPass(AbstractCompiler compiler) |
MinimizeExitPoints(AbstractCompiler compiler) |
MoveFunctionDeclarations(AbstractCompiler compiler) |
MustBeReachingVariableDef(ControlFlowGraph<Node> cfg,
Scope jsScope,
AbstractCompiler compiler) |
NameAnalyzer(AbstractCompiler compiler,
boolean removeUnreferenced,
java.lang.String reportPath)
Creates a name analyzer, with option to remove unreferenced variables when
calling process().
|
NameAnonymousFunctions(AbstractCompiler compiler) |
NameAnonymousFunctionsMapped(AbstractCompiler compiler,
VariableMap previousMap) |
NameReferenceGraph(AbstractCompiler compiler) |
NameReferenceGraphConstruction(AbstractCompiler compiler) |
NewTypeInference(AbstractCompiler compiler) |
NodeTraversal(AbstractCompiler compiler,
NodeTraversal.Callback cb)
Creates a node traversal using the specified callback interface.
|
NodeTraversal(AbstractCompiler compiler,
NodeTraversal.Callback cb,
ScopeCreator scopeCreator)
Creates a node traversal using the specified callback interface
and the scope creator.
|
NoImplicitlyPublicDecls(AbstractCompiler compiler,
Requirement requirement) |
Normalize(AbstractCompiler compiler,
boolean assertOnChange) |
NormalizeStatements(AbstractCompiler compiler,
boolean assertOnChange) |
ObjectLitAssignmentShortening(AbstractCompiler compiler) |
ObjectLitShorteningCallback(AbstractCompiler compiler) |
ObjectPropertyStringPostprocess(AbstractCompiler compiler) |
ObjectPropertyStringPreprocess(AbstractCompiler compiler) |
OldRhinoErrorReporter(AbstractCompiler compiler) |
OptimizeArgumentsArray(AbstractCompiler compiler)
Construct this pass and use
OptimizeArgumentsArray.PARAMETER_PREFIX as the prefix for
all parameter names that it introduces. |
OptimizeArgumentsArray(AbstractCompiler compiler,
java.lang.String paramPrefix) |
OptimizeCalls(AbstractCompiler compiler) |
OptimizeParameters(AbstractCompiler compiler) |
OptimizeReturns(AbstractCompiler compiler) |
PeepholeOptimizationsPass(AbstractCompiler compiler,
AbstractPeepholeOptimization... optimizations)
Creates a peephole optimization pass that runs the given
optimizations.
|
PhaseOptimizer(AbstractCompiler comp,
PerformanceTracker tracker,
PhaseOptimizer.ProgressRange range) |
PolymerBehaviorExtractor(AbstractCompiler compiler,
GlobalNamespace globalNames) |
PolymerClassRewriter(AbstractCompiler compiler,
Node polymerElementExterns) |
PolymerPass(AbstractCompiler compiler) |
PolymerPassSuppressBehaviors(AbstractCompiler compiler) |
PrepareAst(AbstractCompiler compiler) |
PrepareAst(AbstractCompiler compiler,
boolean checkOnly) |
ProcessClosurePrimitives(AbstractCompiler compiler,
PreprocessorSymbolTable preprocessorSymbolTable,
CheckLevel requiresLevel,
boolean preserveGoogRequires) |
ProcessDefines(AbstractCompiler compiler,
java.util.Map<java.lang.String,Node> replacements)
Create a pass that overrides define constants.
|
ProcessTweaks(AbstractCompiler compiler,
boolean stripTweaks,
java.util.Map<java.lang.String,Node> compilerDefaultValueOverrides) |
PropagateConstantAnnotationsOverVars(AbstractCompiler compiler,
boolean forbidChanges) |
PropertyRefCollector(AbstractCompiler compiler) |
PureFunctionIdentifier(AbstractCompiler compiler,
DefinitionProvider definitionProvider) |
ReferenceCollectingCallback(AbstractCompiler compiler,
ReferenceCollectingCallback.Behavior behavior)
Constructor initializes block stack.
|
ReferenceCollectingCallback(AbstractCompiler compiler,
ReferenceCollectingCallback.Behavior behavior,
com.google.common.base.Predicate<Var> varFilter)
Constructor only collects references that match the given variable.
|
RemoveUnusedClassProperties(AbstractCompiler compiler,
boolean removeUnusedConstructorProperties) |
RemoveUnusedPrototypeProperties(AbstractCompiler compiler,
boolean canModifyExterns,
boolean anchorUnusedVars)
Creates a new pass for removing unused prototype properties, based
on the uniqueness of property names.
|
RemoveUnusedVars(AbstractCompiler compiler,
boolean removeGlobals,
boolean preserveFunctionExpressionNames,
boolean modifyCallSites) |
RenameLabels(AbstractCompiler compiler) |
RenameLabels(AbstractCompiler compiler,
com.google.common.base.Supplier<java.lang.String> supplier,
boolean removeUnused) |
RenameProperties(AbstractCompiler compiler,
boolean generatePseudoNames,
NameGenerator nameGenerator)
Creates an instance.
|
RenameProperties(AbstractCompiler compiler,
boolean generatePseudoNames,
VariableMap prevUsedPropertyMap,
char[] reservedCharacters,
NameGenerator nameGenerator)
Creates an instance.
|
RenameProperties(AbstractCompiler compiler,
boolean generatePseudoNames,
VariableMap prevUsedPropertyMap,
NameGenerator nameGenerator)
Creates an instance.
|
RenameVars(AbstractCompiler compiler,
java.lang.String prefix,
boolean localRenamingOnly,
boolean preserveFunctionExpressionNames,
boolean generatePseudoNames,
boolean shouldShadow,
boolean preferStableNames,
VariableMap prevUsedRenameMap,
char[] reservedCharacters,
java.util.Set<java.lang.String> reservedNames,
NameGenerator nameGenerator) |
ReplaceCssNames(AbstractCompiler compiler,
java.util.Map<java.lang.String,java.lang.Integer> cssNames,
java.util.Set<java.lang.String> whitelist) |
ReplaceIdGenerators(AbstractCompiler compiler,
java.util.Map<java.lang.String,RenamingMap> idGens,
boolean generatePseudoNames,
java.lang.String previousMapSerialized) |
ReplaceMessages(AbstractCompiler compiler,
MessageBundle bundle,
boolean checkDuplicatedMessages,
JsMessage.Style style,
boolean strictReplacement) |
ReplaceMessagesForChrome(AbstractCompiler compiler,
JsMessage.IdGenerator idGenerator,
boolean checkDuplicatedMessages,
JsMessage.Style style) |
ReplaceStrings(AbstractCompiler compiler,
java.lang.String placeholderToken,
java.util.List<java.lang.String> functionsToInspect,
java.util.Set<java.lang.String> blacklisted,
VariableMap previousMappings) |
RequireFileoverviewVisibility(AbstractCompiler compiler,
Requirement requirement) |
RequireUseStrict(AbstractCompiler compiler,
Requirement requirement) |
RescopeGlobalSymbols(AbstractCompiler compiler,
java.lang.String globalSymbolNamespace,
boolean assumeCrossModuleNames)
Constructor for the RescopeGlobalSymbols compiler pass.
|
RescopeGlobalSymbols(AbstractCompiler compiler,
java.lang.String globalSymbolNamespace,
boolean addExtern,
boolean assumeCrossModuleNames)
Constructor for the RescopeGlobalSymbols compiler pass for use in testing.
|
RestrictedMethodCall(AbstractCompiler compiler,
Requirement requirement) |
RestrictedNameCall(AbstractCompiler compiler,
Requirement requirement) |
RewriteBindThis(AbstractCompiler compiler) |
RewritePolyfills(AbstractCompiler compiler) |
RewritePolyfills(AbstractCompiler compiler,
RewritePolyfills.Polyfills polyfills) |
RhinoErrorReporter(AbstractCompiler compiler) |
RuntimeTypeCheck(AbstractCompiler compiler,
java.lang.String logFunction) |
SanityCheck(AbstractCompiler compiler) |
ScopedAliases(AbstractCompiler compiler,
PreprocessorSymbolTable preprocessorSymbolTable,
CompilerOptions.AliasTransformationHandler transformationHandler) |
ShadowVariables(AbstractCompiler compiler,
java.util.Map<java.lang.String,RenameVars.Assignment> assignments,
java.util.SortedSet<RenameVars.Assignment> varsByFrequency,
java.util.Map<Node,java.lang.String> pseudoNameMap) |
SideEffectsAnalysis(AbstractCompiler compiler) |
SideEffectsAnalysis(AbstractCompiler compiler,
SideEffectsAnalysis.LocationAbstractionMode locationAbstractionMode)
Constructs a new SideEffectsAnalysis with the given location abstraction.
|
SimpleDefinitionFinder(AbstractCompiler compiler) |
StrictModeCheck(AbstractCompiler compiler) |
StripCode(AbstractCompiler compiler,
java.util.Set<java.lang.String> stripTypes,
java.util.Set<java.lang.String> stripNameSuffixes,
java.util.Set<java.lang.String> stripTypePrefixes,
java.util.Set<java.lang.String> stripNamePrefixes)
Creates an instance.
|
StripProtection(AbstractCompiler compiler) |
SubstituteEs6Syntax(AbstractCompiler compiler) |
SyntacticScopeCreator(AbstractCompiler compiler,
boolean isTyped) |
SyntacticScopeCreator(AbstractCompiler compiler,
SyntacticScopeCreator.RedeclarationHandler redeclarationHandler) |
TemplateAstMatcher(AbstractCompiler compiler,
Node templateFunctionNode)
Constructs this matcher with a Function node that serves as the template
to match all other nodes against.
|
TemplateAstMatcher(AbstractCompiler compiler,
Node templateFunctionNode,
TypeMatchingStrategy typeMatchingStrategy)
Constructs this matcher with a Function node that serves as the template
to match all other nodes against.
|
ThisRefCollector(AbstractCompiler compiler) |
TransformAMDToCJSModule(AbstractCompiler compiler) |
TypeCheck(AbstractCompiler compiler,
ReverseAbstractInterpreter reverseInterpreter,
JSTypeRegistry typeRegistry) |
TypeCheck(AbstractCompiler compiler,
ReverseAbstractInterpreter reverseInterpreter,
JSTypeRegistry typeRegistry,
CheckLevel reportMissingOverride) |
TypeCheck(AbstractCompiler compiler,
ReverseAbstractInterpreter reverseInterpreter,
JSTypeRegistry typeRegistry,
TypedScope topScope,
MemoizedScopeCreator scopeCreator,
CheckLevel reportMissingOverride) |
TypedScopeCreator(AbstractCompiler compiler) |
TypedScopeCreator(AbstractCompiler compiler,
CodingConvention codingConvention) |
TypeInference(AbstractCompiler compiler,
ControlFlowGraph<Node> cfg,
ReverseAbstractInterpreter reverseInterpreter,
TypedScope functionScope,
java.util.Map<java.lang.String,CodingConvention.AssertionFunctionSpec> assertionFunctionsMap) |
TypeInferencePass(AbstractCompiler compiler,
ReverseAbstractInterpreter reverseInterpreter,
TypedScope topScope,
MemoizedScopeCreator scopeCreator) |
TypeTransformation(AbstractCompiler compiler,
StaticTypedScope<JSType> scope) |
TypeValidator(AbstractCompiler compiler) |
UnreachableCodeElimination(AbstractCompiler compiler,
boolean removeNoOpStatements) |
VarCheck(AbstractCompiler compiler) |
VarCheck(AbstractCompiler compiler,
boolean sanityCheck) |
VariableReferenceCheck(AbstractCompiler compiler) |
VariableUseDeclarationMap(AbstractCompiler compiler) |
VariableVisibilityAnalysis(AbstractCompiler compiler) |
VerifyConstants(AbstractCompiler compiler,
boolean checkUserDeclarations) |
VisibilityLocationAbstraction(AbstractCompiler compiler,
VariableVisibilityAnalysis variableVisibilityAnalysis,
SideEffectsAnalysis.VariableUseDeclarationMap variableUseMap) |
WarningReporter(AbstractCompiler compiler) |
Modifier and Type | Field and Description |
---|---|
private AbstractCompiler |
CheckEmptyStatements.compiler |
private AbstractCompiler |
CheckUselessBlocks.compiler |
private AbstractCompiler |
CheckJSDocStyle.compiler |
private AbstractCompiler |
CheckInterfaces.compiler |
(package private) AbstractCompiler |
CheckPrototypeProperties.compiler |
private AbstractCompiler |
CheckEnums.compiler |
(package private) AbstractCompiler |
CheckForInOverArray.compiler |
private AbstractCompiler |
CheckRequiresAndProvidesSorted.compiler |
(package private) AbstractCompiler |
CheckNullableReturn.compiler |
private AbstractCompiler |
CheckDuplicateCase.compiler |
Constructor and Description |
---|
CheckDuplicateCase(AbstractCompiler compiler) |
CheckEmptyStatements(AbstractCompiler compiler) |
CheckEnums(AbstractCompiler compiler) |
CheckForInOverArray(AbstractCompiler compiler) |
CheckInterfaces(AbstractCompiler compiler) |
CheckJSDocStyle(AbstractCompiler compiler) |
CheckNullableReturn(AbstractCompiler compiler) |
CheckPrototypeProperties(AbstractCompiler compiler) |
CheckRequiresAndProvidesSorted(AbstractCompiler compiler) |
CheckUselessBlocks(AbstractCompiler compiler) |
Modifier and Type | Field and Description |
---|---|
private AbstractCompiler |
FixingErrorManager.compiler |
private AbstractCompiler |
NodeMetadata.compiler |
Modifier and Type | Method and Description |
---|---|
AbstractCompiler |
NodeMetadata.getCompiler() |
Modifier and Type | Method and Description |
---|---|
SuggestedFix.Builder |
SuggestedFix.Builder.addCast(Node n,
AbstractCompiler compiler,
java.lang.String type)
Adds a cast of the given type to the provided node.
|
SuggestedFix.Builder |
SuggestedFix.Builder.changeJsDocType(Node n,
AbstractCompiler compiler,
java.lang.String type)
Changes the JS Doc Type of the given node.
|
java.lang.String |
SuggestedFix.Builder.generateCode(AbstractCompiler compiler,
Node node) |
static java.util.List<SuggestedFix> |
ErrorToFixMapper.getFixesForJsError(JSError error,
AbstractCompiler compiler) |
private static SuggestedFix |
ErrorToFixMapper.getFixForExtraRequire(JSError error,
AbstractCompiler compiler) |
static SuggestedFix |
ErrorToFixMapper.getFixForJsError(JSError error,
AbstractCompiler compiler)
Creates a SuggestedFix for the given error.
|
private static SuggestedFix |
ErrorToFixMapper.getFixForMissingRequire(JSError error,
AbstractCompiler compiler) |
private static SuggestedFix |
ErrorToFixMapper.getFixForUnnecessaryCast(JSError error,
AbstractCompiler compiler) |
private static SuggestedFix |
ErrorToFixMapper.getFixForUnsortedRequiresOrProvides(java.lang.String closureFunction,
JSError error,
AbstractCompiler compiler) |
(package private) void |
RefasterJsScanner.initialize(AbstractCompiler compiler)
Initializes the Scanner class by loading the template JS file, compiling it, and then
finding all matching RefasterJs template functions in the file.
|
SuggestedFix.Builder |
SuggestedFix.Builder.insertBefore(Node nodeToInsertBefore,
Node n,
AbstractCompiler compiler)
Inserts a new node before the provided node.
|
private SuggestedFix.Builder |
SuggestedFix.Builder.insertBefore(Node nodeToInsertBefore,
Node n,
AbstractCompiler compiler,
java.lang.String sortKey) |
SuggestedFix.Builder |
SuggestedFix.Builder.removeCast(Node n,
AbstractCompiler compiler)
Removes a cast from the given node.
|
SuggestedFix.Builder |
SuggestedFix.Builder.replace(Node original,
Node newNode,
AbstractCompiler compiler)
Replaces the provided node with new node in the source file.
|
void |
FixingErrorManager.setCompiler(AbstractCompiler compiler) |
Constructor and Description |
---|
JsSourceMatcher(AbstractCompiler compiler,
Node templateNode)
Constructs this matcher with a Function node that serves as the template
to match all other nodes against.
|
NodeMetadata(AbstractCompiler compiler) |
RefasterJsTemplate(AbstractCompiler compiler,
Node beforeTemplate,
Node afterTemplate) |