Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Unified Diff: pkg/front_end/lib/src/fasta/parser/parser.dart

Issue 2959023002: Remove unneeded arguments (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698