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

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

Issue 2724853002: Revert last 4 commits by lrn@ (Closed)
Patch Set: 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
« no previous file with comments | « pkg/compiler/lib/src/elements/modelx.dart ('k') | runtime/vm/parser.cc » ('j') | 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 186f8965fcc3c851c5270e50e3673ea133960c0c..1eda2a6d2be3129b4d48e726f090f6e5f2672d16 100644
--- a/pkg/front_end/lib/src/fasta/parser/parser.dart
+++ b/pkg/front_end/lib/src/fasta/parser/parser.dart
@@ -344,13 +344,8 @@ class Parser {
assert(optional('part', token));
assert(optional('of', token.next));
Token partKeyword = token;
- token = token.next.next;
- if (token.isIdentifier()) {
- token = parseQualified(token, IdentifierContext.partName,
- IdentifierContext.partNameContinuation);
- } else {
- token = parseLiteralStringOrRecoverExpression(token);
- }
+ token = parseQualified(token.next.next, IdentifierContext.partName,
+ IdentifierContext.partNameContinuation);
Token semicolon = token;
token = expect(';', token);
listener.endPartOf(partKeyword, semicolon);
« no previous file with comments | « pkg/compiler/lib/src/elements/modelx.dart ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698