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

Unified Diff: runtime/vm/parser.cc

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/front_end/lib/src/fasta/parser/parser.dart ('k') | sdk/lib/async/future.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser.cc
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc
index 6a43faee2d6e6d5eb02865f3f2402194f44e114f..f139e766cd6bbf42eb0edac97db8a3e56d7772ed 100644
--- a/runtime/vm/parser.cc
+++ b/runtime/vm/parser.cc
@@ -6386,16 +6386,12 @@ void Parser::ParsePartHeader() {
ReportError("'part of' expected");
}
ConsumeToken();
- // The VM is not required to check that the library name or URI matches the
- // name or URI of the current library, so we ignore them.
- if (CurrentToken() == Token::kSTRING) {
- ParseStringLiteral(false);
- } else {
- ExpectIdentifier("library name expected");
- while (CurrentToken() == Token::kPERIOD) {
- ConsumeToken();
- ExpectIdentifier("malformed library name");
- }
+ // The VM is not required to check that the library name matches the
+ // name of the current library, so we ignore it.
+ ExpectIdentifier("library name expected");
+ while (CurrentToken() == Token::kPERIOD) {
+ ConsumeToken();
+ ExpectIdentifier("malformed library name");
}
ExpectSemicolon();
}
« no previous file with comments | « pkg/front_end/lib/src/fasta/parser/parser.dart ('k') | sdk/lib/async/future.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698