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

Unified Diff: runtime/vm/scanner.cc

Issue 11367069: Make library, import, export, part pseudo-keywords (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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 | « runtime/vm/parser.cc ('k') | runtime/vm/token.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/scanner.cc
===================================================================
--- runtime/vm/scanner.cc (revision 14492)
+++ runtime/vm/scanner.cc (working copy)
@@ -400,15 +400,15 @@
const String& kSource = String::Handle(Symbols::Source());
const String& ident = String::Handle(ConsumeIdentChars(false));
if (ident.Equals(kLibrary)) {
- current_token_.kind = Token::kLIBRARY;
+ current_token_.kind = Token::kLEGACY_LIBRARY;
return;
}
if (ident.Equals(kImport)) {
- current_token_.kind = Token::kIMPORT;
+ current_token_.kind = Token::kLEGACY_IMPORT;
return;
}
if (ident.Equals(kSource)) {
- current_token_.kind = Token::kSOURCE;
+ current_token_.kind = Token::kLEGACY_SOURCE;
return;
}
ErrorMsg("Unrecognized library token");
« no previous file with comments | « runtime/vm/parser.cc ('k') | runtime/vm/token.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698