Uses of Class
com.google.javascript.jscomp.AbstractCompiler
-
Packages that use AbstractCompiler Package Description com.google.javascript.jscomp Provides the core compiler and its public API.com.google.javascript.jscomp.disambiguate com.google.javascript.jscomp.ijs com.google.javascript.jscomp.lint Provides "lint" checks: Checks which are likely to provide a lot of false positives, and therefore should not generally be turned on as errors, but which might be appropriate to include in a static analysis tool.com.google.javascript.jscomp.modules com.google.javascript.refactoring -
-
Uses of AbstractCompiler in com.google.javascript.jscomp
Subclasses of AbstractCompiler in com.google.javascript.jscomp Modifier and Type Class Description classCompilerCompiler (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 AbstractCompilerNodeTraversal.AbstractModuleCallback. compilerMethods in com.google.javascript.jscomp that return AbstractCompiler Modifier and Type Method Description AbstractCompilerHasCompiler. getCompiler()AbstractCompilerNodeTraversal. getCompiler()Methods in com.google.javascript.jscomp with parameters of type AbstractCompiler Modifier and Type Method Description 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.voidNodeTraversal.ChangeScopeRootCallback. enterChangeScopeRoot(AbstractCompiler compiler, Node root)NodeCompilerInput. getAstRoot(AbstractCompiler compiler)NodeJsAst. getAstRoot(AbstractCompiler compiler)NodeRecoverableJsAst. getAstRoot(AbstractCompiler compiler)NodeSourceAst. getAstRoot(AbstractCompiler compiler)Gets the root node of the AST for the source file this represents.NodeSyntheticAst. getAstRoot(AbstractCompiler compiler)static ControlFlowGraph<Node>ControlFlowAnalysis. getCfg(AbstractCompiler compiler, Node cfgRoot)FeatureSetJsAst. getFeatures(AbstractCompiler compiler)com.google.common.collect.ImmutableList<CompilerInput>JSModuleGraph. 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, java.lang.String name)Creates a property access on thecontexttree.static NodeNodeUtil. newQName(AbstractCompiler compiler, java.lang.String name)Creates a node representing a qualified name.static NodeNodeUtil. newQNameDeclaration(AbstractCompiler compiler, java.lang.String name, Node value, JSDocInfo info)Creates a node representing a qualified name.static NodeNodeUtil. newQNameDeclaration(AbstractCompiler compiler, java.lang.String name, Node value, JSDocInfo info, Token type)Creates a node representing a qualified name.voidCompilerInput. setCompiler(AbstractCompiler compiler)Sets an abstract compiler for doing parsing.voidJSModule. 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. traverseChangedFunctions(AbstractCompiler compiler, NodeTraversal.ChangeScopeRootCallback callback)Traversal for passes that work only on changed functions.static voidNodeTraversal. traversePostOrder(AbstractCompiler compiler, Node root, NodeTraversal.AbstractPostOrderCallbackInterface cb)Traverses in post order.static voidNodeTraversal. traverseRoots(AbstractCompiler compiler, NodeTraversal.Callback cb, Node externs, Node root)static voidNodeTraversal. 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 voidNodeTraversal. traverseScopeRoots(AbstractCompiler compiler, Node root, java.util.List<Node> scopeNodes, NodeTraversal.Callback cb, NodeTraversal.ChangeScopeRootCallback changeCallback, 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.Method parameters in com.google.javascript.jscomp with type arguments of type AbstractCompiler Modifier and Type Method Description abstract PassFactory.BuilderPassFactory.Builder. setInternalFactory(java.util.function.Function<AbstractCompiler,? extends CompilerPass> x) -
Uses of AbstractCompiler in com.google.javascript.jscomp.disambiguate
Constructors in com.google.javascript.jscomp.disambiguate with parameters of type AbstractCompiler Constructor Description DisambiguateProperties2(AbstractCompiler compiler, com.google.common.collect.ImmutableMap<java.lang.String,CheckLevel> invalidationReportingLevelByProp) -
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.lint
Constructors in com.google.javascript.jscomp.lint with parameters of type AbstractCompiler Constructor Description CheckArrayWithGoogObject(AbstractCompiler compiler)CheckConstantCaseNames(AbstractCompiler compiler)CheckDuplicateCase(AbstractCompiler compiler)CheckEmptyStatements(AbstractCompiler compiler)CheckEnums(AbstractCompiler compiler)CheckEs6ModuleFileStructure(AbstractCompiler compiler)CheckEs6Modules(AbstractCompiler compiler)CheckExtraRequires(AbstractCompiler compiler)CheckInterfaces(AbstractCompiler compiler)CheckJSDocStyle(AbstractCompiler compiler)CheckMissingSemicolon(AbstractCompiler compiler)CheckNoMutatedEs6Exports(AbstractCompiler compiler)CheckNullabilityModifiers(AbstractCompiler compiler)CheckNullableReturn(AbstractCompiler compiler)CheckPrimitiveAsObject(AbstractCompiler compiler)CheckPrototypeProperties(AbstractCompiler compiler)CheckUnusedLabels(AbstractCompiler compiler)CheckUselessBlocks(AbstractCompiler compiler) -
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.refactoring
Methods in com.google.javascript.refactoring that return AbstractCompiler Modifier and Type Method Description AbstractCompilerNodeMetadata. getCompiler()Methods in com.google.javascript.refactoring with parameters of type AbstractCompiler Modifier and Type Method Description SuggestedFix.BuilderSuggestedFix.Builder. addCast(Node n, AbstractCompiler compiler, java.lang.String type)Adds a cast of the given type to the provided node.SuggestedFix.BuilderSuggestedFix.Builder. attachMatchedNodeInfo(Node node, AbstractCompiler compiler)Sets the node on this SuggestedFix that caused this SuggestedFix to be built in the first place.SuggestedFix.BuilderSuggestedFix.Builder. changeJsDocType(Node n, AbstractCompiler compiler, java.lang.String type)Changes the JS Doc Type of the given node.static ScriptMetadataScriptMetadata. create(Node script, AbstractCompiler compiler)java.lang.StringSuggestedFix.Builder. generateCode(AbstractCompiler compiler, Node node)SuggestedFix.BuilderSuggestedFix.Builder. insertBefore(Node nodeToInsertBefore, Node n, AbstractCompiler compiler)Inserts a new node before the provided node.SuggestedFix.BuilderSuggestedFix.Builder. removeCast(Node n, AbstractCompiler compiler)Removes a cast from the given node.SuggestedFix.BuilderSuggestedFix.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 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)
-