Uses of Interface
com.google.javascript.jscomp.NodeTraversal.Callback
Packages that use NodeTraversal.Callback
Package
Description
-
Uses of NodeTraversal.Callback in com.google.javascript.jscomp
Subinterfaces of NodeTraversal.Callback in com.google.javascript.jscompModifier and TypeInterfaceDescriptionstatic interface
Callback that also knows about scope changesClasses in com.google.javascript.jscomp that implement NodeTraversal.CallbackModifier and TypeClassDescriptionfinal class
Provides a framework for checking code against a set of user configured conformance rules.class
A pass to detect references to fully qualified Closure namespaces.final class
Checks for invalid code references to type-only imports (i.e., goog.requireType).class
Compiler pass for Chrome-specific needs.final class
Checks that goog.module() is used correctly.final class
This class computes aControlFlowGraph
for a given ASTstatic class
Abstract callback to visit a control flow graph node without going into subtrees of the node that are also represented by other control flow graph nodes.final class
Collects global variable references for use byCrossChunkCodeMotion
.final class
Checks that ES6 Modules are used correctly, and do not reference undefined keywords or features.final class
Convertssuper.method()
calls and adds constructors to any classes that lack them.final class
Convertssuper()
calls.final class
Extracts ES6 classes defined in function calls to local constants.final class
Converts ES6 "for of" loops to ES5.final class
Renames variables declared in function bodies so they don't shadow any variable referenced in the param list.class
Converts ES6 arrow functions to standard anonymous ES3 functions.final class
Rewrite "let"s and "const"s as "var"s.final class
Rewrite block-scoped function declarations as "let"s.final class
Converts ES6 classes to valid ES5 or ES3 code.final class
Extracts ES6 class extends expressions and creates an alias.final class
Rewrites destructuring patterns and default parameters to valid ES3 code or to a different form of destructuring.final class
Rewrites a ES6 module into a form that can be safely concatenated.final class
Converts REST parameters and SPREAD expressions.final class
Rewrites a script which was imported as a module into an ES6 module.final class
Splits variable declarations that declare multiple variables into separate declarations, if at least one of the declarations is a destructuring declaration.final class
Replaces the ES7 `**` and `**=` operators to calls to `Math.pow`.final class
Walks the AST looking for usages of qualified names, and 'goog.require's of those names.class
Find and update any direct dependencies of an input.class
Warns at any usage of Dynamic Import expressions that they are unable to be transpiled.final class
Warn about types in JSDoc that are implicitly nullable.final class
Injects JS library code that may be needed by the transpiled form of the input source code.class
Instrumentsawait
andyield
for theAsyncContext
polyfill.class
An optimization pass to remove J2CL Asserts.$assert.class
Performs correctness checks which are specific to J2CL-generated patterns.class
A normalization pass to re-write Util.$getDefine calls to make them work in compiled mode.class
Locates JS code that is intended to declare localizable messages.final class
Converts ES6 code to valid ES5 code.static class
An traversal base class that tracks and caches the ControlFlowGraph (CFG) during the traversal.static class
Callback that fires on changed scopes.static class
Abstract callback that knows when a global script, goog.provide file, goog.module, goog.loadModule, ES module or CommonJS module is entered or exited.static class
Abstract callback to visit all nodes in postorder.static class
Abstract callback to visit all nodes in preorder.static class
Abstract scoped callback to visit all nodes in postorder.static class
Abstract callback to visit all nodes but not traverse into function bodies.static class
Abstract callback to visit all structure and statement nodes but doesn't traverse into functions or expressions.static class
Abstract callback to visit all non-extern nodes in postorder.final class
Rewrites a CommonJS module http://wiki.commonjs.org/wiki/Modules/1.1.1 into a form that can be safely concatenated.final class
Converts async functions to valid ES6 generator functions code.final class
Converts async generator functions into a function returning a new $jscomp.AsyncGenWrapper around the original block and awaits/yields converted to yields of ActionRecords.final class
Replaces the ES2022 class fields and class static blocks with constructor declaration.class
Rewrite dynamic import expressions to account for bundling and module rewriting.class
Rewrites a JSON file to be a module export.final class
Replaces the ES2020 `||=`, `invalid input: '&'invalid input: '&'=`, and `??=` operators.final class
Replaces the ES2020 `??` operator with conditional (?:).final class
Converts object spread to valid ES2017 code.final class
Annotates nodes with information from their original input file before the compiler performs work that changes this information (such as its original location, its original name, etc).final class
Checks the types of JS expressions against any declared type information.Methods in com.google.javascript.jscomp with parameters of type NodeTraversal.CallbackModifier and TypeMethodDescriptionNodeTraversal.Builder.setCallback
(NodeTraversal.Callback x) 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, @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. -
Uses of NodeTraversal.Callback in com.google.javascript.jscomp.instrumentation
Classes in com.google.javascript.jscomp.instrumentation that implement NodeTraversal.CallbackModifier and TypeClassDescriptionclass
Instrument branch coverage for javascript. -
Uses of NodeTraversal.Callback in com.google.javascript.jscomp.lint
Classes in com.google.javascript.jscomp.lint that implement NodeTraversal.CallbackModifier and TypeClassDescriptionfinal class
Lints against passing arrays to goog.object methods with the intention of iterating over them as though with a for-in loop, which is discouraged with arrays.class
This pass looks for module-level variable declarations that use CONSTANT_CASE, according to the Google style guide, and verifies that they are also annotated @const or are in a const clause.class
This pass looks for properties that are not modified and ensures they use the @const annotation.final class
Check for duplicate case labels in a switch statement Eg: switch (foo) { case 1: case 1: }final class
Check for empty statements (i.e.final class
Checks the following: Whether there are duplicate values in enums.final class
Checks the file structure of ES6 modules.final class
Miscellaneous checks for style in ES6 modules.class
Walks the AST looking for usages of qualified names, and 'goog.require's of those names.final class
Checks that goog.module statement matches the generated TypeScript module namespace, which is based on the file path.final class
Checks for errors related to interfaces.final class
Checks for various JSDoc-related style issues, such as function definitions without JsDoc, params with no corresponding@param
annotation, coding conventions not being respected, etc.final class
Check for statements that should end with a semicolon according to the Google style guide.final class
Checks if code has a module-level static property assignment (`X.Y`) inside a `goog.module`.final class
Checks that exports of ES6 modules are not mutated outside of module initialization.class
Checks for missing or redundant nullability modifiers.final class
Check for explicit creation of the object equivalents of primitive types (e.g.final class
Checks when a mutable property is assigned to a prototype.final class
Checks that goog.provide statements are sorted and deduplicated, exposing the necessary information to produce a suggested fix.final class
Checks that Closure import statements (goog.require, goog.requireType, and goog.forwardDeclare) are sorted and deduplicated, exposing the necessary information to produce a suggested fix.final class
Check for unused labels blocks.class
This pass looks for properties that are never read.final class
Check for useless blocks.final class
Check for `var` (prefer `const` or `let`). -
Uses of NodeTraversal.Callback in com.google.javascript.jscomp.modules
Classes in com.google.javascript.jscomp.modules that implement NodeTraversal.CallbackModifier and TypeClassDescriptionfinal class
Collects information related to and resolves ES imports and exports.