Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
com.google.javascript.jscomp.lint |
Modifier and Type | Class and Description |
---|---|
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 |
Es6ConvertSuper
Converts
super nodes. |
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 |
Es6RewriteDestructuring
Rewrites ES6 destructuring patterns and default parameters to valid ES3 code.
|
class |
Es6RewriteGenerators
Converts ES6 generator functions to valid ES3 code.
|
class |
Es6SplitVariableDeclarations
Splits variable declarations that declare multiple variables into
separate declarations, if at least one of the declarations is a
destructuring declaration.
|
class |
Es6ToEs3ClassSideInheritance
Rewrites static inheritance to explicitly copy inherited properties from superclass to
subclass so that the typechecker knows the subclass has those properties.
|
class |
Es6ToEs3Converter
Converts ES6 code to valid ES5 code.
|
class |
Es6TypedToEs6Converter
Converts
Node.getDeclaredTypeExpression() to JSDocInfo.getType() type
annotations. |
class |
FieldCleanupPass
A CleanupPass implementation that will remove all field declarations on
JSTypes contributed by the original file.
|
class |
RewritePolyfills
Rewrites calls to ES6 library functions to use compiler-provided polyfills,
e.g.,
var m = new Map(); becomes
$jscomp.Map$install(); var m = new $jscomp.Map(); |
class |
WhitespaceWrapGoogModules
Replicates the effect of ClosureBundler in whitespace-only mode and wraps goog.modules
in goog.loadModule calls.
|
Modifier and Type | Method and Description |
---|---|
protected abstract HotSwapCompilerPass |
PassFactory.HotSwapPassFactory.create(AbstractCompiler compiler) |
protected HotSwapCompilerPass |
PassFactory.getHotSwapPass(AbstractCompiler compiler)
Any factory whose CompilerPass has a corresponding hot-swap version should
override this.
|
protected HotSwapCompilerPass |
PassFactory.HotSwapPassFactory.getHotSwapPass(AbstractCompiler compiler) |
Modifier and Type | Class and Description |
---|---|
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 |
CheckForInOverArray
Checks when the pattern for (x in arr) { ...
|
class |
CheckInterfaces
Checks for errors related to interfaces.
|
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 |
CheckRequiresAndProvidesSorted
Checks that goog.require() and goog.provide() calls are sorted alphabetically.
|
class |
CheckUnusedLabels
Check for unused labels blocks.
|
class |
CheckUselessBlocks
Check for useless blocks.
|
Copyright © 2009-2016 Google. All Rights Reserved.