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

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

Issue 2710803002: Pass '=' to endNamedMixinApplication(). (Closed)
Patch Set: Update pkg/compiler too. Created 3 years, 10 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
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 299c97b7771fdad4965f76d2c35b19b066674cdd..2a327ae81f3e903054749ef8117315c213dcb965 100644
--- a/pkg/front_end/lib/src/fasta/parser/parser.dart
+++ b/pkg/front_end/lib/src/fasta/parser/parser.dart
@@ -731,21 +731,23 @@ class Parser {
token = parseTypeVariablesOpt(token);
if (optional('=', token)) {
- token = expect('=', token);
- return parseNamedMixinApplication(token, begin, name);
+ Token equals = token;
+ token = token.next;
+ return parseNamedMixinApplication(token, begin, name, equals);
} else {
return parseClass(token, begin, name);
}
}
- Token parseNamedMixinApplication(Token token, Token begin, Token name) {
+ Token parseNamedMixinApplication(Token token, Token begin, Token name,
+ Token equals) {
token = parseMixinApplication(token);
Token implementsKeyword = null;
if (optional('implements', token)) {
implementsKeyword = token;
token = parseTypeList(token.next);
}
- listener.endNamedMixinApplication(begin, implementsKeyword, token);
+ listener.endNamedMixinApplication(begin, equals, implementsKeyword, token);
return expect(';', token);
}

Powered by Google App Engine
This is Rietveld 408576698