class |
CheckMissingAndExtraRequires |
Walks the AST looking for usages of qualified names, and 'goog.require's of those names.
|
class |
ClosureCheckModule |
Checks that goog.module() is used correctly.
|
class |
DartSuperAccessorsPass |
Converts super getter and setter calls in order to support the output
of the Dart Dev Compiler (https://github.com/dart-lang/dev_compiler).
|
class |
Es6CheckModule |
Checks that ES6 Modules are used correctly, and do not reference undefined keywords or features.
|
class |
Es6ConvertSuper |
Converts super.method() calls and adds constructors to any classes that lack them.
|
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 |
FieldCleanupPass |
A CleanupPass implementation that will remove all field declarations on
JSTypes contributed by the original file.
|
class |
GatherModuleMetadata |
Gathers metadata around modules that is useful for checking imports / requires and creates a
ModuleMetadataMap .
|
class |
InjectTranspilationRuntimeLibraries |
Injects JS library code that may be needed by the transpiled form of the input source code.
|
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).
|
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 |
RewriteGoogJsImports |
Looks for references to Closure's goog.js file and globalizes.
|
class |
RewriteNullishCoalesceOperator |
Replaces the ES2020 `??` operator with conditional (?:).
|
class |
RewriteObjectSpread |
Converts object spread to valid ES2017 code.
|
class |
RewritePolyfills |
Injects polyfill libraries to ensure that ES6+ library functions are available.
|
class |
WhitespaceWrapGoogModules |
Replicates the effect of ClosureBundler in whitespace-only mode and wraps goog.modules
in goog.loadModule calls.
|