Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
com.google.javascript.jscomp.lint |
Modifier and Type | Interface and Description |
---|---|
interface |
HotSwapCompilerPass
Interface for compiler passes that can be used in a hot-swap fashion.
|
Modifier and Type | Class and Description |
---|---|
class |
AstValidator
This class walks the AST and validates that the structure is correct.
|
class |
CallGraph
A pass the uses a
DefinitionProvider to compute a call graph for an
AST. |
class |
CheckConformance
Provides a framework for checking code against a set of user configured
conformance rules.
|
class |
CheckEventfulObjectDisposal
Check to ensure there exists a path to dispose of each eventful object
created.
|
class |
ClosureRewriteModule
Process aliases in goog.scope blocks.
|
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 |
Es6RewriteGenerators
Converts ES6 generator functions to valid ES3 code.
|
class |
Es6RewriteLetConst
Rewrites "let"s and "const"s as "var"s, renaming declarations when necessary.
|
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 super class to
sub class eliminating dynamic copying from the original transpilation pass in the process.
|
class |
Es6ToEs3Converter
Converts ES6 code to valid ES3 code.
|
class |
FieldCleanupPass
A CleanupPass implementation that will remove all field declarations on
JSTypes contributed by the original file.
|
class |
InlineProperties
InlineProperties attempts to find references to properties that are known to
be constants and inline the known value.
|
class |
NewTypeInference
New type inference algorithm.
|
class |
ObjectPropertyStringPreprocess
Rewrites
new goog.testing.ObjectPropertyString(foo, 'bar') to
new JSCompiler_ObjectPropertyString(window, foo.bar) . |
class |
ProcessCommonJSModules
Rewrites a CommonJS module http://wiki.commonjs.org/wiki/Modules/1.1.1
into a form that can be safely concatenated.
|
class |
TypeCheck
Checks the types of JS expressions against any declared type
information.
|
Modifier and Type | Field and Description |
---|---|
com.google.common.collect.Multimap<CustomPassExecutionTime,CompilerPass> |
CompilerOptions.customPasses
Custom passes
|
Modifier and Type | Method and Description |
---|---|
void |
CompilerOptions.setCustomPasses(com.google.common.collect.Multimap<CustomPassExecutionTime,CompilerPass> customPasses) |
Modifier and Type | Class and Description |
---|---|
class |
CheckEnums
Check for duplicate values in enums.
|
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 |
CheckPrototypeProperties
Checks when a mutable property is assigned to a prototype.
|
Copyright © 2009-2014 Google. All Rights Reserved.