Index: pkg/compiler/lib/src/resolution/enum_creator.dart |
diff --git a/pkg/compiler/lib/src/resolution/enum_creator.dart b/pkg/compiler/lib/src/resolution/enum_creator.dart |
index 370767026b526a194aa28ae5db9563fd0a62adb3..6b0acfa4bca4f54a083c9aa986427800c9c7ab17 100644 |
--- a/pkg/compiler/lib/src/resolution/enum_creator.dart |
+++ b/pkg/compiler/lib/src/resolution/enum_creator.dart |
@@ -82,12 +82,11 @@ class AstBuilder { |
symbolToken(Precedence.SEMICOLON_INFO), expression); |
} |
- FunctionExpression functionExpression(Modifiers modifiers, String name, |
- NodeList typeVariables, NodeList argumentList, Statement body, |
+ FunctionExpression functionExpression( |
+ Modifiers modifiers, String name, NodeList argumentList, Statement body, |
[TypeAnnotation returnType]) { |
return new FunctionExpression( |
identifier(name), |
- typeVariables, |
argumentList, |
body, |
returnType, |
@@ -230,7 +229,6 @@ class EnumCreator { |
FunctionExpression constructorNode = builder.functionExpression( |
builder.modifiers(isConst: true), |
enumClass.name, |
- null, // typeVariables |
builder.argumentList([indexDefinition]), |
builder.emptyStatement()); |
@@ -300,7 +298,6 @@ class EnumCreator { |
FunctionExpression toStringNode = builder.functionExpression( |
Modifiers.EMPTY, |
'toString', |
- null, // typeVariables |
builder.argumentList([]), |
builder.returnStatement(builder.indexGet( |
builder.mapLiteral(mapEntries, isConst: true), |