Move template lit, computed prop, and member fn transpilation after all checks
The LateEs6ToEs3Converter pass transpiles all of these features.
@@ -102,7 +102,6 @@ public class TranspilationPasses {
// support the transpiled features.
// TODO(b/73387406): Move each pass above here temporarily, then into
// addEs6PostTypecheckPasses once the pass supports propagating type information
- passes.add(lateConvertEs6ToEs3);
}
}
@@ -458,6 +457,7 @@ public class TranspilationPasses {
// TODO(b/73387406): Move passes here as typecheck passes are updated to cope with the features
// they transpile and as the passes themselves are updated to propagate type information to the
// transpiled code.
+ passes.add(lateConvertEs6ToEs3);
passes.add(es6ForOf);
passes.add(rewriteBlockScopedFunctionDeclaration);
passes.add(rewriteBlockScopedDeclaration);
