Uses of Class
com.google.javascript.jscomp.AbstractCompiler
-
-
Uses of AbstractCompiler in com.google.javascript.jscomp
Subclasses of AbstractCompiler in com.google.javascript.jscomp Modifier and Type Class 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.Fields in com.google.javascript.jscomp declared as AbstractCompiler Modifier and Type Field Description protected AbstractCompiler
NodeTraversal.AbstractModuleCallback. compiler
Methods in com.google.javascript.jscomp that return AbstractCompiler Modifier and Type Method Description AbstractCompiler
NodeTraversal. getCompiler()
Methods in com.google.javascript.jscomp with parameters of type AbstractCompiler Modifier and Type Method Description static com.google.common.collect.ImmutableSet<java.lang.String>
NodeUtil. collectExternVariableNames(AbstractCompiler compiler, Node externs)
static void
NodeUtil. deleteChildren(Node n, AbstractCompiler compiler)
Permanently delete all the children of the given node, including reporting changes.static void
NodeUtil. deleteFunctionCall(Node n, AbstractCompiler compiler)
Permanently delete the given call from the AST while maintaining a valid node structure, as well as report the related AST changes to the given compiler.static void
NodeUtil. deleteNode(Node n, AbstractCompiler compiler)
Permanently delete the given node from the AST, as well as report the related AST changes/deletions to the given compiler.Node
CompilerInput. getAstRoot(AbstractCompiler compiler)
Node
JsAst. getAstRoot(AbstractCompiler compiler)
Node
RecoverableJsAst. getAstRoot(AbstractCompiler compiler)
Node
SourceAst. getAstRoot(AbstractCompiler compiler)
Gets the root node of the AST for the source file this represents.static ControlFlowGraph<Node>
ControlFlowAnalysis. getCfg(AbstractCompiler compiler, Node cfgRoot)
FeatureSet
JsAst. getFeatures(AbstractCompiler compiler)
com.google.common.collect.ImmutableList<CompilerInput>
JSChunkGraph. manageDependencies(AbstractCompiler compiler, DependencyOptions dependencyOptions)
Apply the dependency options to the list of sources, returning a new source list re-ordering and dropping files as necessary.static void
NodeUtil. markFunctionsDeleted(Node node, AbstractCompiler compiler)
Recurses through a tree, marking all function nodes deleted.static Node
NodeUtil. newPropertyAccess(AbstractCompiler compiler, Node context, java.lang.String name)
Creates a property access on thecontext
tree.static Node
NodeUtil. newQName(AbstractCompiler compiler, java.lang.String name)
Creates a node representing a qualified name.static Node
NodeUtil. newQNameDeclaration(AbstractCompiler compiler, java.lang.String name, Node value, JSDocInfo info)
Creates a node representing a qualified name.static Node
NodeUtil. newQNameDeclaration(AbstractCompiler compiler, java.lang.String name, Node value, JSDocInfo info, Token type)
Creates a node representing a qualified name.void
CompileMetricsRecorderInterface. recordResultMetrics(AbstractCompiler compiler, Result result)
void
DummyCompileMetricsRecorder. recordResultMetrics(AbstractCompiler compiler, Result result)
void
CompileMetricsRecorderInterface. recordStartState(AbstractCompiler compiler)
void
DummyCompileMetricsRecorder. recordStartState(AbstractCompiler compiler)
void
CompilerInput. setCompiler(AbstractCompiler compiler)
Sets an abstract compiler for doing parsing.NodeTraversal.Builder
NodeTraversal.Builder. setCompiler(AbstractCompiler x)
void
JSChunk. sortInputsByDeps(AbstractCompiler compiler)
Puts the JS files into a topologically sorted order by their dependencies.static void
NodeTraversal. traverse(AbstractCompiler compiler, Node root, NodeTraversal.Callback cb)
Traverses using the SyntacticScopeCreatorstatic void
NodeTraversal. traverseRoots(AbstractCompiler compiler, NodeTraversal.Callback cb, Node externs, Node root)
static void
NodeTraversal. traverseScopeRoots(AbstractCompiler compiler, Node root, java.util.List<Node> scopeNodes, NodeTraversal.Callback cb, boolean traverseNested)
Traverses *just* the contents of provided scope nodes (and optionally scopes nested within them) but will fall back on traversing the entire AST from root if a null scope nodes list is provided.static void
GatherGetterAndSetterProperties. update(AbstractCompiler compiler, Node externs, Node root)
Gathers all getters and setters in the AST.Method parameters in com.google.javascript.jscomp with type arguments of type AbstractCompiler Modifier and Type Method Description abstract PassFactory.Builder
PassFactory.Builder. setInternalFactory(java.util.function.Function<AbstractCompiler,? extends CompilerPass> x)
Constructors in com.google.javascript.jscomp with parameters of type AbstractCompiler Constructor Description AbstractRule(AbstractCompiler compiler, com.google.javascript.jscomp.Requirement requirement)
AstValidator(AbstractCompiler compiler)
AstValidator(AbstractCompiler compiler, boolean validateScriptFeatures)
AstValidator(AbstractCompiler compiler, AstValidator.ViolationHandler handler, boolean validateScriptFeatures)
BanCreateDom(AbstractCompiler compiler, com.google.javascript.jscomp.Requirement requirement)
BanCreateElement(AbstractCompiler compiler, com.google.javascript.jscomp.Requirement requirement)
BanExecCommand(AbstractCompiler compiler, com.google.javascript.jscomp.Requirement requirement)
Creates a custom checker to banDocument#execCommand
based on a conformance requirement spec.BanForOf(AbstractCompiler compiler, com.google.javascript.jscomp.Requirement requirement)
BanGlobalVars(AbstractCompiler compiler, com.google.javascript.jscomp.Requirement requirement)
BannedEnhance(AbstractCompiler compiler, com.google.javascript.jscomp.Requirement requirement)
BanNullDeref(AbstractCompiler compiler, com.google.javascript.jscomp.Requirement requirement)
BanSetAttribute(AbstractCompiler compiler, com.google.javascript.jscomp.Requirement requirement)
Create a custom checker to banElement#setAttribute
based on conformance a requirement spec.BanStaticThis(AbstractCompiler compiler, com.google.javascript.jscomp.Requirement requirement)
BanThrowOfNonErrorTypes(AbstractCompiler compiler, com.google.javascript.jscomp.Requirement requirement)
BanUnknownDirectThisPropsReferences(AbstractCompiler compiler, com.google.javascript.jscomp.Requirement requirement)
BanUnknownThis(AbstractCompiler compiler, com.google.javascript.jscomp.Requirement requirement)
BanUnknownTypedClassPropsReferences(AbstractCompiler compiler, com.google.javascript.jscomp.Requirement requirement)
BanUnresolvedType(AbstractCompiler compiler, com.google.javascript.jscomp.Requirement requirement)
CheckMissingOverrideTypes(AbstractCompiler compiler)
CheckMissingRequires(AbstractCompiler compiler, ModuleMetadataMap moduleMetadataMap)
CheckTypeImportCodeReferences(AbstractCompiler compiler)
ChromePass(AbstractCompiler compiler)
ClosureCheckModule(AbstractCompiler compiler, ModuleMetadataMap moduleMetadataMap)
ConcretizeStaticInheritanceForInlining(AbstractCompiler compiler)
Es6CheckModule(AbstractCompiler compiler)
Es6ConvertSuper(AbstractCompiler compiler)
Es6ConvertSuperConstructorCalls(AbstractCompiler compiler)
Es6ForOfConverter(AbstractCompiler compiler)
Es6NormalizeShorthandProperties(AbstractCompiler compiler)
Es6RelativizeImportPaths(AbstractCompiler compiler)
Es6RenameVariablesInParamLists(AbstractCompiler compiler)
Es6RewriteArrowFunction(AbstractCompiler compiler)
Es6RewriteBlockScopedDeclaration(AbstractCompiler compiler)
Es6RewriteBlockScopedFunctionDeclaration(AbstractCompiler compiler)
Es6RewriteClass(AbstractCompiler compiler)
Es6RewriteModulesToCommonJsModules(AbstractCompiler compiler)
Es6RewriteRestAndSpread(AbstractCompiler compiler)
Es6RewriteScriptsToModules(AbstractCompiler compiler)
Creates a new Es6RewriteModules instance which can be used to rewrite ES6 modules to a concatenable form.Es6SplitVariableDeclarations(AbstractCompiler compiler)
Es7RewriteExponentialOperator(AbstractCompiler compiler)
ForbidDynamicImportUsage(AbstractCompiler compiler)
GatherModuleMetadata(AbstractCompiler compiler, boolean processCommonJsModules, ModuleLoader.ResolutionMode moduleResolutionMode)
ImplicitNullabilityCheck(AbstractCompiler compiler)
InjectTranspilationRuntimeLibraries(AbstractCompiler compiler)
J2clPass(AbstractCompiler compiler)
J2clPropertyInlinerPass(AbstractCompiler compiler)
J2clUtilGetDefineRewriterPass(AbstractCompiler compiler)
JsMessageVisitor(AbstractCompiler compiler, JsMessage.Style style, JsMessage.IdGenerator idGenerator)
Creates JS message visitor.LateEs6ToEs3Converter(AbstractCompiler compiler)
LazyParsedDependencyInfo(DependencyInfo delegate, JsAst ast, AbstractCompiler compiler)
ProcessCommonJSModules(AbstractCompiler compiler)
Creates a new ProcessCommonJSModules instance which can be used to rewrite CommonJS modules to a concatenable form.ReferenceCollector(AbstractCompiler compiler, ReferenceCollector.Behavior behavior, com.google.javascript.jscomp.ScopeCreator creator)
Constructor initializes block stack.RemoveCastNodes(AbstractCompiler compiler)
RequireUseStrict(AbstractCompiler compiler, com.google.javascript.jscomp.Requirement requirement)
RewriteClassFields(AbstractCompiler compiler)
RewriteDynamicImports(AbstractCompiler compiler, java.lang.String alias, CompilerOptions.ChunkOutputType chunkOutputType)
RewriteGoogJsImports(AbstractCompiler compiler, RewriteGoogJsImports.Mode mode, ModuleMap moduleMap)
RewriteJsonToModule(AbstractCompiler compiler)
Creates a new RewriteJsonToModule instance which can be used to rewrite JSON files to modules.RewriteLogicalAssignmentOperatorsPass(AbstractCompiler compiler)
RewriteNullishCoalesceOperator(AbstractCompiler compiler)
RewriteObjectSpread(AbstractCompiler compiler)
RewritePolyfills(AbstractCompiler compiler, boolean injectPolyfills, boolean isolatePolyfills)
StrictBanUnresolvedType(AbstractCompiler compiler, com.google.javascript.jscomp.Requirement requirement)
SyntacticScopeCreator(AbstractCompiler compiler)
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.TransformAMDToCJSModule(AbstractCompiler compiler)
TypeCheck(AbstractCompiler compiler, ReverseAbstractInterpreter reverseInterpreter, JSTypeRegistry typeRegistry)
TypeCheck(AbstractCompiler compiler, ReverseAbstractInterpreter reverseInterpreter, JSTypeRegistry typeRegistry, TypedScope topScope, com.google.javascript.jscomp.TypedScopeCreator scopeCreator)
-
Uses of AbstractCompiler in com.google.javascript.jscomp.disambiguate
Constructors in com.google.javascript.jscomp.disambiguate with parameters of type AbstractCompiler Constructor Description AmbiguateProperties(AbstractCompiler compiler, char[] reservedFirstCharacters, char[] reservedNonFirstCharacters, java.util.Set<java.lang.String> externProperties)
DisambiguateProperties(AbstractCompiler compiler, com.google.common.collect.ImmutableSet<java.lang.String> propertiesThatMustDisambiguate)
-
Uses of AbstractCompiler in com.google.javascript.jscomp.ijs
Constructors in com.google.javascript.jscomp.ijs with parameters of type AbstractCompiler Constructor Description ConvertToTypedInterface(AbstractCompiler compiler)
-
Uses of AbstractCompiler in com.google.javascript.jscomp.instrumentation
Constructors in com.google.javascript.jscomp.instrumentation with parameters of type AbstractCompiler Constructor Description BranchCoverageInstrumentationCallback(AbstractCompiler compiler, java.util.Map<java.lang.String,com.google.javascript.jscomp.instrumentation.FileInstrumentationData> instrumentationData)
CoverageInstrumentationPass(AbstractCompiler compiler, CoverageInstrumentationPass.CoverageReach reach)
Deprecated.CoverageInstrumentationPass(AbstractCompiler compiler, CoverageInstrumentationPass.CoverageReach reach, CompilerOptions.InstrumentOption instrumentOption, java.lang.String productionInstrumentationArrayName)
-
Uses of AbstractCompiler in com.google.javascript.jscomp.lint
-
Uses of AbstractCompiler in com.google.javascript.jscomp.modules
Constructors in com.google.javascript.jscomp.modules with parameters of type AbstractCompiler Constructor Description ModuleMapCreator(AbstractCompiler compiler, ModuleMetadataMap moduleMetadataMap)
-
Uses of AbstractCompiler in com.google.javascript.jscomp.serialization
Methods in com.google.javascript.jscomp.serialization with parameters of type AbstractCompiler Modifier and Type Method Description static SerializeTypedAstPass
SerializeTypedAstPass. createFromOutputStream(AbstractCompiler c, java.io.OutputStream out)
static SerializeTypedAstPass
SerializeTypedAstPass. createFromPath(AbstractCompiler compiler, java.nio.file.Path outputPath)
static TypedAstDeserializer.DeserializedAst
TypedAstDeserializer. deserializeFullAst(AbstractCompiler compiler, SourceFile syntheticExterns, com.google.common.collect.ImmutableList<SourceFile> existingSourceFiles, java.io.InputStream typedAstsStream, boolean includeTypeInformation)
Transforms a given TypedAst.List stream into a compiler ASTstatic TypedAstDeserializer.DeserializedAst
TypedAstDeserializer. deserializeRuntimeLibraries(AbstractCompiler compiler, SourceFile syntheticExterns, com.google.common.base.Optional<ColorPool.Builder> colorPool, java.io.InputStream typedAstsStream)
Transforms the special runtime library TypedAstConstructors in com.google.javascript.jscomp.serialization with parameters of type AbstractCompiler Constructor Description ConvertTypesToColors(AbstractCompiler compiler, SerializationOptions serializationOptions)
-
Uses of AbstractCompiler in com.google.javascript.refactoring
Methods in com.google.javascript.refactoring that return AbstractCompiler Modifier and Type Method Description AbstractCompiler
NodeMetadata. getCompiler()
Methods in com.google.javascript.refactoring with parameters of type AbstractCompiler Modifier and Type Method 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. attachMatchedNodeInfo(Node node, AbstractCompiler compiler)
Sets the node on this SuggestedFix that caused this SuggestedFix to be built in the first place.SuggestedFix.Builder
SuggestedFix.Builder. changeJsDocType(Node n, AbstractCompiler compiler, java.lang.String type)
Changes the JS Doc Type of the given node.static ScriptMetadata
ScriptMetadata. create(Node script, AbstractCompiler compiler)
java.lang.String
SuggestedFix.Builder. generateCode(AbstractCompiler compiler, Node node)
SuggestedFix.Builder
SuggestedFix.Builder. insertBefore(Node nodeToInsertBefore, Node n, AbstractCompiler compiler)
Inserts a new node before the provided node.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)
Constructors in com.google.javascript.refactoring with parameters of type AbstractCompiler Constructor Description ErrorToFixMapper(AbstractCompiler compiler)
JsSourceMatcher(AbstractCompiler compiler, Node templateNode, TypeMatchingStrategy typeMatchingStrategy)
Constructs this matcher with a Function node that serves as the template to match all other nodes against.NodeMetadata(AbstractCompiler compiler)
-