Move Es6ConvertSuperConstructorCalls just after Es6RewriteRestAndSpread
This is a step toward merging Es6ConvertSuperConstructorCalls into Es6RewriteClass.
It was run very late, because it ran after type checking before any of the other
ES6 transpilation passes did, but now they all run after type checking.
@@ -122,12 +122,12 @@ public class TranspilationPasses {
passes.add(es6ExtractClasses);
passes.add(es6RewriteClass);
passes.add(es6RewriteRestAndSpread);
+ passes.add(es6ConvertSuperConstructorCalls);
passes.add(lateConvertEs6ToEs3);
passes.add(es6ForOf);
passes.add(rewriteBlockScopedFunctionDeclaration);
passes.add(rewriteBlockScopedDeclaration);
passes.add(rewriteGenerators);
- passes.add(es6ConvertSuperConstructorCalls);
} else if (options.needsTranspilationOf(Feature.OBJECT_PATTERN_REST)) {
passes.add(es6RenameVariablesInParamLists);
passes.add(es6SplitVariableDeclarations);
