Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
Modifier and Type | Class and Description |
---|---|
static class |
PassFactory.HotSwapPassFactory
A pass-factory that is good for
HotSwapCompilerPass passes. |
Modifier and Type | Method and Description |
---|---|
static PassFactory |
PassFactory.createEmptyPass(java.lang.String name)
Create a no-op pass that can only run once.
|
Modifier and Type | Method and Description |
---|---|
protected abstract java.util.List<PassFactory> |
PassConfig.getChecks()
Gets the checking passes to run.
|
protected java.util.List<PassFactory> |
DefaultPassConfig.getChecks() |
protected abstract java.util.List<PassFactory> |
PassConfig.getOptimizations()
Gets the optimization passes to run.
|
protected java.util.List<PassFactory> |
DefaultPassConfig.getOptimizations() |
protected java.util.List<PassFactory> |
PassConfig.getTranspileOnlyPasses()
Gets the transpilation passes
|
protected java.util.List<PassFactory> |
DefaultPassConfig.getTranspileOnlyPasses() |
protected java.util.List<PassFactory> |
PassConfig.getWhitespaceOnlyPasses()
Gets additional checking passes that are run always, even in "whitespace only" mode.
|
protected java.util.List<PassFactory> |
DefaultPassConfig.getWhitespaceOnlyPasses() |
Modifier and Type | Method and Description |
---|---|
static void |
TranspilationPasses.addEs6ModulePass(java.util.List<PassFactory> passes,
PreprocessorSymbolTable.CachedInstanceFactory preprocessorTableFactory) |
static void |
TranspilationPasses.addEs6ModuleToCjsPass(java.util.List<PassFactory> passes) |
static void |
TranspilationPasses.addEs6RewriteImportPathPass(java.util.List<PassFactory> passes) |
static void |
TranspilationPasses.addPostCheckTranspilationPasses(java.util.List<PassFactory> passes,
CompilerOptions options)
Adds transpilation passes that should run after all checks are done.
|
static void |
TranspilationPasses.addPreTypecheckTranspilationPasses(java.util.List<PassFactory> passes,
CompilerOptions options) |
static void |
TranspilationPasses.addRewritePolyfillPass(java.util.List<PassFactory> passes)
Adds the pass to inject ES6 polyfills, which goes after the late ES6 passes.
|
Copyright © 2009-2018 Google. All Rights Reserved.