public class TranspilationPasses
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
addEs2016Passes(java.util.List<PassFactory> passes) |
static void |
addEs2017Passes(java.util.List<PassFactory> passes) |
static void |
addEs6EarlyPasses(java.util.List<PassFactory> passes)
Adds all the early ES6 transpilation passes, which go before the Dart pass.
|
static void |
addEs6LatePasses(java.util.List<PassFactory> passes)
Adds all the late ES6 transpilation passes, which go after the Dart pass
|
static void |
addEs6ModulePass(java.util.List<PassFactory> passes) |
static void |
addEs6PassesAfterNTI(java.util.List<PassFactory> passes)
Adds all transpilation passes that runs after NTI
|
static void |
addEs6PassesBeforeNTI(java.util.List<PassFactory> passes)
Adds all the late ES6 transpilation passes, which go after the Dart pass
and go before TypeChecking
|
static void |
addPostCheckPasses(java.util.List<PassFactory> passes) |
static void |
addRewritePolyfillPass(java.util.List<PassFactory> passes)
Adds the pass to inject ES6 polyfills, which goes after the late ES6 passes.
|
public static void addEs6ModulePass(java.util.List<PassFactory> passes)
public static void addEs2017Passes(java.util.List<PassFactory> passes)
public static void addEs2016Passes(java.util.List<PassFactory> passes)
public static void addEs6EarlyPasses(java.util.List<PassFactory> passes)
Includes ES6 features that are straightforward to transpile. We won't handle them natively in the rest of the compiler, so we always transpile them, even if the output language is also ES6.
public static void addEs6LatePasses(java.util.List<PassFactory> passes)
public static void addEs6PassesBeforeNTI(java.util.List<PassFactory> passes)
Includes ES6 features that are best handled natively by the compiler. As we convert more passes to handle these features, we will be moving the transpilation later in the compilation, and eventually only transpiling when the output is lower than ES6.
public static void addEs6PassesAfterNTI(java.util.List<PassFactory> passes)
public static void addRewritePolyfillPass(java.util.List<PassFactory> passes)
public static void addPostCheckPasses(java.util.List<PassFactory> passes)
Copyright © 2009-2018 Google. All Rights Reserved.