Uses of Class
com.google.javascript.jscomp.AbstractCompiler
Packages that use AbstractCompiler
Package
Description
-
Uses of AbstractCompiler in com.google.javascript.jscomp
Subclasses of AbstractCompiler in com.google.javascript.jscompModifier and TypeClassDescriptionclassCompiler (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 AbstractCompilerModifier and TypeFieldDescriptionprotected final AbstractCompilerNodeTraversal.AbstractModuleCallback.compilerMethods in com.google.javascript.jscomp that return AbstractCompilerMethods in com.google.javascript.jscomp with parameters of type AbstractCompilerModifier and TypeMethodDescriptionstatic com.google.common.collect.ImmutableSet<String> NodeUtil.collectExternVariableNames(AbstractCompiler compiler, Node externs) final CompilerPassPassFactory.create(AbstractCompiler compiler) Creates a new compiler pass to be run.static voidNodeUtil.deleteChildren(Node n, AbstractCompiler compiler) Permanently delete all the children of the given node, including reporting changes.static voidNodeUtil.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 voidNodeUtil.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.CompilerInput.getAstRoot(AbstractCompiler compiler) NodeTraversal.AbstractCfgCallback.getControlFlowGraph(AbstractCompiler compiler) Gets the control flow graph for the current JS scope.CompilerInput.getFeatures(AbstractCompiler compiler) static @Nullable StringCompiler.getLicenseForFile(AbstractCompiler compiler, @Nullable String fileName) 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 voidNodeUtil.markFunctionsDeleted(Node node, AbstractCompiler compiler) Recurses through a tree, marking all function nodes deleted.static NodeNodeUtil.newPropertyAccess(AbstractCompiler compiler, Node context, String name) Creates a property access on thecontexttree.static NodeNodeUtil.newQName(AbstractCompiler compiler, String name) Creates a node representing a qualified name.static NodeNodeUtil.newQNameDeclaration(AbstractCompiler compiler, String name, Node value, JSDocInfo info) Creates a node representing a qualified name.static NodeNodeUtil.newQNameDeclaration(AbstractCompiler compiler, String name, Node value, JSDocInfo info, Token type) Creates a node representing a qualified name.voidCompileMetricsRecorderInterface.recordResultMetrics(AbstractCompiler compiler, Result result) voidDummyCompileMetricsRecorder.recordResultMetrics(AbstractCompiler compiler, Result result) voidCompileMetricsRecorderInterface.recordStartState(AbstractCompiler compiler) voidDummyCompileMetricsRecorder.recordStartState(AbstractCompiler compiler) voidCompilerInput.setCompiler(AbstractCompiler compiler) Sets an abstract compiler for doing parsing.ControlFlowAnalysis.Builder.setCompiler(AbstractCompiler compiler) NodeTraversal.Builder.setCompiler(AbstractCompiler x) voidJSChunk.sortInputsByDeps(AbstractCompiler compiler) Puts the JS files into a topologically sorted order by their dependencies.static voidNodeTraversal.traverse(AbstractCompiler compiler, Node root, NodeTraversal.Callback cb) Traverses using the SyntacticScopeCreatorstatic voidNodeTraversal.traverseRoots(AbstractCompiler compiler, NodeTraversal.Callback cb, Node externs, Node root) static voidNodeTraversal.traverseScopeRoots(AbstractCompiler compiler, @Nullable Node root, @Nullable 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 voidGatherGetterAndSetterProperties.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 AbstractCompilerModifier and TypeMethodDescriptionabstract PassFactory.BuilderPassFactory.Builder.setInternalFactory(Function<AbstractCompiler, ? extends CompilerPass> x) Constructors in com.google.javascript.jscomp with parameters of type AbstractCompilerModifierConstructorDescriptionAbstractRule(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) BanElementSetAttribute(AbstractCompiler compiler, com.google.javascript.jscomp.Requirement requirement) Create a custom checker to banElement#setAttributebased on conformance a requirement spec.BanExecCommand(AbstractCompiler compiler, com.google.javascript.jscomp.Requirement requirement) Creates a custom checker to banDocument#execCommandbased 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) BannedModsRegex(AbstractCompiler compiler, com.google.javascript.jscomp.Requirement requirement) BanNonLiteralArgsToGoogStringConstFrom(AbstractCompiler compiler, com.google.javascript.jscomp.Requirement requirement) BanNullDeref(AbstractCompiler compiler, com.google.javascript.jscomp.Requirement requirement) BanSettingAttributes(AbstractCompiler compiler, com.google.javascript.jscomp.Requirement requirement) Create a custom checker to ban a function likeElement#setAttributebased on a conformance 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) CheckMissingRequires(AbstractCompiler compiler, ModuleMetadataMap moduleMetadataMap) ChromePass(AbstractCompiler compiler) ClosureCheckModule(AbstractCompiler compiler, ModuleMetadataMap moduleMetadataMap) Es6CheckModule(AbstractCompiler compiler) Es6ConvertSuper(AbstractCompiler compiler) Es6ForOfConverter(AbstractCompiler compiler) Es6RelativizeImportPaths(AbstractCompiler compiler) Es6RewriteArrowFunction(AbstractCompiler compiler) Es6RewriteClass(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) ExtraRequireRemover(AbstractCompiler compiler) ForbidDynamicImportUsage(AbstractCompiler compiler) GatherModuleMetadata(AbstractCompiler compiler, boolean processCommonJsModules, ModuleLoader.ResolutionMode moduleResolutionMode) ImplicitNullabilityCheck(AbstractCompiler compiler) InstrumentAsyncContext(AbstractCompiler compiler, boolean shouldInstrumentAwait) InstrumentAsyncContext(AbstractCompiler compiler, boolean shouldInstrumentAwait, boolean diagnoseSafari) J2clPass(AbstractCompiler compiler) J2clPropertyInlinerPass(AbstractCompiler compiler) protectedJsMessageVisitor(AbstractCompiler compiler, JsMessage.IdGenerator idGenerator) Creates JS message visitor.LateEs6ToEs3Converter(AbstractCompiler compiler) LazyParsedDependencyInfo(DependencyInfo delegate, CompilerInput 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) RewriteClassMembers(AbstractCompiler compiler) RewriteDynamicImports(AbstractCompiler compiler, @Nullable 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.RewriteObjectSpread(AbstractCompiler compiler) RewritePolyfills(AbstractCompiler compiler, boolean injectPolyfills, boolean isolatePolyfills, CompilerOptions.LanguageMode injectPolyfillsNewerThan) 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.TypeCheck(AbstractCompiler compiler, ReverseAbstractInterpreter reverseInterpreter, JSTypeRegistry typeRegistry) TypeCheck(AbstractCompiler compiler, ReverseAbstractInterpreter reverseInterpreter, JSTypeRegistry typeRegistry, @Nullable TypedScope topScope, @Nullable 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 AbstractCompilerModifierConstructorDescriptionAmbiguateProperties(AbstractCompiler compiler, char[] reservedFirstCharacters, char[] reservedNonFirstCharacters, Set<String> externProperties) DisambiguateProperties(AbstractCompiler compiler, com.google.common.collect.ImmutableSet<String> propertiesThatMustDisambiguate) -
Uses of AbstractCompiler in com.google.javascript.jscomp.ijs
Constructors in com.google.javascript.jscomp.ijs with parameters of type AbstractCompiler -
Uses of AbstractCompiler in com.google.javascript.jscomp.instrumentation
Constructors in com.google.javascript.jscomp.instrumentation with parameters of type AbstractCompilerModifierConstructorDescriptionBranchCoverageInstrumentationCallback(AbstractCompiler compiler, Map<String, com.google.javascript.jscomp.instrumentation.FileInstrumentationData> instrumentationData) CoverageInstrumentationPass(AbstractCompiler compiler, CoverageInstrumentationPass.CoverageReach reach) Deprecated.CoverageInstrumentationPass(AbstractCompiler compiler, CoverageInstrumentationPass.CoverageReach reach, CompilerOptions.InstrumentOption instrumentOption, String productionInstrumentationArrayName) -
Uses of AbstractCompiler in com.google.javascript.jscomp.lint
Constructors in com.google.javascript.jscomp.lint with parameters of type AbstractCompilerModifierConstructorDescriptionCheckArrayWithGoogObject(AbstractCompiler compiler) CheckConstantCaseNames(AbstractCompiler compiler) CheckConstPrivateProperties(AbstractCompiler compiler) CheckDuplicateCase(AbstractCompiler compiler) CheckEmptyStatements(AbstractCompiler compiler) CheckEnums(AbstractCompiler compiler) CheckEs6ModuleFileStructure(AbstractCompiler compiler) CheckEs6Modules(AbstractCompiler compiler) CheckExtraRequires(AbstractCompiler compiler, @Nullable com.google.common.collect.ImmutableSet<String> requiresToRemove) CheckInterfaces(AbstractCompiler compiler) CheckJSDocStyle(AbstractCompiler compiler) CheckMissingSemicolon(AbstractCompiler compiler) CheckNestedNames(AbstractCompiler compiler) CheckNoMutatedEs6Exports(AbstractCompiler compiler) CheckNullabilityModifiers(AbstractCompiler compiler) CheckPrimitiveAsObject(AbstractCompiler compiler) CheckPrototypeProperties(AbstractCompiler compiler) CheckUnusedLabels(AbstractCompiler compiler) CheckUnusedPrivateProperties(AbstractCompiler compiler) CheckUselessBlocks(AbstractCompiler compiler) CheckVar(AbstractCompiler compiler) -
Uses of AbstractCompiler in com.google.javascript.jscomp.modules
Constructors in com.google.javascript.jscomp.modules with parameters of type AbstractCompilerModifierConstructorDescriptionModuleMapCreator(AbstractCompiler compiler, ModuleMetadataMap moduleMetadataMap) -
Uses of AbstractCompiler in com.google.javascript.jscomp.serialization
Methods in com.google.javascript.jscomp.serialization with parameters of type AbstractCompilerModifier and TypeMethodDescriptionstatic SerializeTypedAstPassSerializeTypedAstPass.createFromOutputStream(AbstractCompiler c, OutputStream out, SerializationOptions serializationOptions) Serializes a TypedAst to the given output stream.static SerializeTypedAstPassSerializeTypedAstPass.createFromPath(AbstractCompiler compiler, Path outputPath, SerializationOptions serializationOptions) Serializes a gzipped TypedAst to the specified outputPathTypedAstDeserializer.deserializeFullAst(AbstractCompiler compiler, SourceFile syntheticExterns, com.google.common.collect.ImmutableSet<SourceFile> requiredInputFiles, InputStream typedAstsStream, boolean includeTypeInformation, boolean resolveSourceMapAnnotations, boolean parseInlineSourceMaps) Transforms a given TypedAst delimited stream into a compiler ASTTypedAstDeserializer.deserializeRuntimeLibraries(AbstractCompiler compiler, SourceFile syntheticExterns, com.google.common.base.Optional<ColorPool.Builder> colorPool, InputStream typedAstsStream, boolean resolveSourceMapAnnotations, boolean parseInlineSourceMaps) Transforms the special runtime library TypedAstConstructors in com.google.javascript.jscomp.serialization with parameters of type AbstractCompilerModifierConstructorDescriptionConvertTypesToColors(AbstractCompiler compiler, SerializationOptions serializationOptions) -
Uses of AbstractCompiler in com.google.javascript.refactoring
Methods in com.google.javascript.refactoring that return AbstractCompilerMethods in com.google.javascript.refactoring with parameters of type AbstractCompilerModifier and TypeMethodDescriptionSuggestedFix.Builder.addCast(Node n, AbstractCompiler compiler, String type) Adds a cast of the given type to the provided node.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.changeJsDocType(Node n, AbstractCompiler compiler, String type) Changes the JS Doc Type of the given node.static ScriptMetadataScriptMetadata.create(Node script, AbstractCompiler compiler) SuggestedFix.Builder.generateCode(AbstractCompiler compiler, Node node) SuggestedFix.Builder.insertBefore(Node nodeToInsertBefore, Node n, AbstractCompiler compiler) Inserts a new node before the provided node.SuggestedFix.Builder.removeCast(Node n, AbstractCompiler compiler) Removes a cast from the given node.SuggestedFix.Builder.replace(Node original, Node newNode, AbstractCompiler compiler) Replaces the provided node with new node in the source file.voidFixingErrorManager.setCompiler(AbstractCompiler compiler) Constructors in com.google.javascript.refactoring with parameters of type AbstractCompilerModifierConstructorDescriptionErrorToFixMapper(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)