Uses of Interface
com.google.javascript.jscomp.NodeTraversal.Callback
-
Packages that use NodeTraversal.Callback Package Description com.google.javascript.jscomp com.google.javascript.jscomp.instrumentation com.google.javascript.jscomp.lint com.google.javascript.jscomp.modules -
-
Uses of NodeTraversal.Callback in com.google.javascript.jscomp
Subinterfaces of NodeTraversal.Callback in com.google.javascript.jscomp Modifier and Type Interface Description static interface
NodeTraversal.ScopedCallback
Callback that also knows about scope changesClasses in com.google.javascript.jscomp that implement NodeTraversal.Callback Modifier and Type Class Description class
CheckConformance
Provides a framework for checking code against a set of user configured conformance rules.class
CheckMissingRequires
A pass to detect references to fully qualified Closure namespaces.class
CheckTypeImportCodeReferences
Checks for invalid code references to type-only imports (i.e., goog.requireType).class
ChromePass
Compiler pass for Chrome-specific needs.class
ClosureCheckModule
Checks that goog.module() is used correctly.class
ControlFlowAnalysis
This is a compiler pass that computes a control flow graph.static class
ControlFlowGraph.AbstractCfgNodeTraversalCallback
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.class
CrossChunkReferenceCollector
Collects global variable references for use byCrossChunkCodeMotion
.class
Es6CheckModule
Checks that ES6 Modules are used correctly, and do not reference undefined keywords or features.class
Es6ConvertSuper
Convertssuper.method()
calls and adds constructors to any classes that lack them.class
Es6ConvertSuperConstructorCalls
Convertssuper()
calls.class
Es6ExtractClasses
Extracts ES6 classes defined in function calls to local constants.class
Es6ForOfConverter
Converts ES6 "for of" loops to ES5.class
Es6NormalizeShorthandProperties
Normalizes shorthand object properties.class
Es6RenameVariablesInParamLists
Renames declarations and references in function bodies to avoid shadowing names referenced in the parameter list, in default values or computed properties.class
Es6RewriteArrowFunction
Converts ES6 arrow functions to standard anonymous ES3 functions.class
Es6RewriteBlockScopedDeclaration
Rewrite "let"s and "const"s as "var"s.class
Es6RewriteBlockScopedFunctionDeclaration
Rewrite block-scoped function declarations as "let"s.class
Es6RewriteClass
Converts ES6 classes to valid ES5 or ES3 code.class
Es6RewriteClassExtendsExpressions
Extracts ES6 class extends expressions and creates an alias.class
Es6RewriteDestructuring
Rewrites destructuring patterns and default parameters to valid ES3 code or to a different form of destructuring.class
Es6RewriteModules
Rewrites a ES6 module into a form that can be safely concatenated.class
Es6RewriteRestAndSpread
Converts REST parameters and SPREAD expressions.class
Es6RewriteScriptsToModules
Rewrites a script which was imported as a module into an ES6 module.class
Es6SplitVariableDeclarations
Splits variable declarations that declare multiple variables into separate declarations, if at least one of the declarations is a destructuring declaration.class
Es7RewriteExponentialOperator
Replaces the ES7 `**` and `**=` operators to calls to `Math.pow`.class
FindModuleDependencies
Find and update any direct dependencies of an input.class
ForbidDynamicImportUsage
Warns at any usage of Dynamic Import expressions that they are unable to be transpiled.class
ImplicitNullabilityCheck
Warn about types in JSDoc that are implicitly nullable.class
InjectTranspilationRuntimeLibraries
Injects JS library code that may be needed by the transpiled form of the input source code.class
J2clAssertRemovalPass
An optimization pass to remove J2CL Asserts.$assert.class
J2clChecksPass
Performs correctness checks which are specific to J2CL-generated patterns.class
J2clUtilGetDefineRewriterPass
A normalization pass to re-write Util.$getDefine calls to make them work in compiled mode.class
JsMessageVisitor
Traverses across parsed tree and finds I18N messages.class
LateEs6ToEs3Converter
Converts ES6 code to valid ES5 code.class
MarkUntranspilableFeaturesAsRemoved
Looks for presence of features that are not supported for transpilation (mostly new RegExp features).static class
NodeTraversal.AbstractModuleCallback
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
NodeTraversal.AbstractPostOrderCallback
Abstract callback to visit all nodes in postorder.static class
NodeTraversal.AbstractPreOrderCallback
Abstract callback to visit all nodes in preorder.static class
NodeTraversal.AbstractScopedCallback
Abstract scoped callback to visit all nodes in postorder.static class
NodeTraversal.AbstractShallowCallback
Abstract callback to visit all nodes but not traverse into function bodies.static class
NodeTraversal.AbstractShallowStatementCallback
Abstract callback to visit all structure and statement nodes but doesn't traverse into functions or expressions.static class
NodeTraversal.ExternsSkippingCallback
Abstract callback to visit all non-extern nodes in postorder.class
ProcessCommonJSModules
Rewrites a CommonJS module http://wiki.commonjs.org/wiki/Modules/1.1.1 into a form that can be safely concatenated.class
ReferenceCollectingCallback
A helper class for passes that want to access all information about where a variable is referenced and declared at once and then make a decision as to how it should be handled, possibly inlining, reordering, or generating warnings.class
RewriteAsyncFunctions
Converts async functions to valid ES6 generator functions code.class
RewriteAsyncIteration
Converts async generator functions into a function returning a new $jscomp.AsyncGenWrapper around the original block and awaits/yields converted to yields of ActionRecords.class
RewriteJsonToModule
Rewrites a JSON file to be a module export.class
RewriteNullishCoalesceOperator
Replaces the ES2020 `??` operator with conditional (?:).class
RewriteObjectSpread
Converts object spread to valid ES2017 code.class
TypeCheck
Checks the types of JS expressions against any declared type information.Methods in com.google.javascript.jscomp with parameters of type NodeTraversal.Callback Modifier and Type Method Description 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
NodeTraversal. 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.Constructors in com.google.javascript.jscomp with parameters of type NodeTraversal.Callback Constructor Description NodeTraversal(AbstractCompiler compiler, NodeTraversal.Callback cb, com.google.javascript.jscomp.ScopeCreator scopeCreator)
Creates a node traversal using the specified callback interface and the scope creator. -
Uses of NodeTraversal.Callback in com.google.javascript.jscomp.instrumentation
Classes in com.google.javascript.jscomp.instrumentation that implement NodeTraversal.Callback Modifier and Type Class Description class
BranchCoverageInstrumentationCallback
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.Callback Modifier and Type Class Description class
CheckArrayWithGoogObject
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
CheckConstantCaseNames
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
CheckDefaultExportOfGoogModule
Check that the goog.module does not use a default export.class
CheckDuplicateCase
Check for duplicate case labels in a switch statement Eg: switch (foo) { case 1: case 1: } This is normally an indication of a programmer error.class
CheckEmptyStatements
Check for empty statements (i.e.class
CheckEnums
Checks the following: Whether there are duplicate values in enums.class
CheckEs6ModuleFileStructure
Checks the file structure of ES6 modules.class
CheckEs6Modules
Miscellaneous checks for style in ES6 modules.class
CheckExtraRequires
Walks the AST looking for usages of qualified names, and 'goog.require's of those names.class
CheckInterfaces
Checks for errors related to interfaces.class
CheckJSDocStyle
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.class
CheckMissingSemicolon
Check for statements that should end with a semicolon according to the Google style guide.class
CheckNestedNames
Checks if code has a module-level static property assignment (`X.Y`) inside a `goog.module`.class
CheckNoMutatedEs6Exports
Checks that exports of ES6 modules are not mutated outside of module initialization.class
CheckNullabilityModifiers
Checks for missing or redundant nullability modifiers.class
CheckNullableReturn
Checks when a function is annotated as returning {SomeType} (nullable) but actually always returns {!SomeType}, i.e.class
CheckPrimitiveAsObject
Check for explicit creation of the object equivalents of primitive types (e.g.class
CheckPrototypeProperties
Checks when a mutable property is assigned to a prototype.class
CheckProvidesSorted
Checks that goog.provide statements are sorted and deduplicated, exposing the necessary information to produce a suggested fix.class
CheckRequiresSorted
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.class
CheckUnusedLabels
Check for unused labels blocks.class
CheckUselessBlocks
Check for useless blocks.class
CheckVar
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.Callback Modifier and Type Class Description class
EsModuleProcessor
Collects information related to and resolves ES imports and exports.
-