Index: pkg/front_end/lib/src/fasta/parser/parser.dart |
diff --git a/pkg/front_end/lib/src/fasta/parser/parser.dart b/pkg/front_end/lib/src/fasta/parser/parser.dart |
index b8f8b3002edcfd0d61795e36ed6b34e2195113e3..f794d0f824ae33a03fc0f23f305c1b73ac2b30c9 100644 |
--- a/pkg/front_end/lib/src/fasta/parser/parser.dart |
+++ b/pkg/front_end/lib/src/fasta/parser/parser.dart |
@@ -1009,18 +1009,18 @@ class Parser { |
token = parseTypeVariablesOpt(token); |
if (optional('=', token)) { |
listener.beginNamedMixinApplication(begin, name); |
- Token equals = token; |
- token = token.next; |
- return parseNamedMixinApplication( |
- token, begin, classKeyword, name, equals); |
+ return parseNamedMixinApplication(token, begin, classKeyword); |
} else { |
listener.beginClassDeclaration(begin, name); |
- return parseClass(token, begin, classKeyword, name); |
+ return parseClass(token, begin, classKeyword); |
} |
} |
Token parseNamedMixinApplication( |
- Token token, Token begin, Token classKeyword, Token name, Token equals) { |
+ Token token, Token begin, Token classKeyword) { |
+ assert(optional('=', token)); |
+ Token equals = token; |
+ token = token.next; |
token = parseType(token); |
token = parseMixinApplicationRest(token); |
Token implementsKeyword = null; |
@@ -1033,7 +1033,7 @@ class Parser { |
return expect(';', token); |
} |
- Token parseClass(Token token, Token begin, Token classKeyword, Token name) { |
+ Token parseClass(Token token, Token begin, Token classKeyword) { |
Token extendsKeyword; |
if (optional('extends', token)) { |
extendsKeyword = token; |