Index: pkg/compiler/lib/src/compiler.dart |
diff --git a/pkg/compiler/lib/src/compiler.dart b/pkg/compiler/lib/src/compiler.dart |
index 93fc66a315304d01daa47bf774b8f0440ddb3f3b..c4c56c8565784c4e7485c74e758ed8fbf26893ba 100644 |
--- a/pkg/compiler/lib/src/compiler.dart |
+++ b/pkg/compiler/lib/src/compiler.dart |
@@ -1551,7 +1551,8 @@ abstract class Compiler implements DiagnosticListener { |
mainFunction = backend.helperForBadMain(); |
} else { |
mainFunction = main; |
- FunctionSignature parameters = mainFunction.computeSignature(this); |
+ mainFunction.computeType(this); |
+ FunctionSignature parameters = mainFunction.functionSignature; |
if (parameters.requiredParameterCount > 2) { |
int index = 0; |
parameters.orderedForEachParameter((Element parameter) { |
@@ -1720,7 +1721,8 @@ abstract class Compiler implements DiagnosticListener { |
world.nativeEnqueuer.processNativeClasses(libraryLoader.libraries); |
if (main != null && !main.isErroneous) { |
FunctionElement mainMethod = main; |
- if (mainMethod.computeSignature(this).parameterCount != 0) { |
+ mainMethod.computeType(this); |
+ if (mainMethod.functionSignature.parameterCount != 0) { |
// The first argument could be a list of strings. |
backend.listImplementation.ensureResolved(this); |
world.registerInstantiatedType( |