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

Unified Diff: runtime/vm/parser.cc

Issue 10918226: Get rid of #resource directive in VM (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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 | « runtime/vm/parser.h ('k') | runtime/vm/scanner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser.cc
===================================================================
--- runtime/vm/parser.cc (revision 12349)
+++ runtime/vm/parser.cc (working copy)
@@ -4131,23 +4131,6 @@
}
-// TODO(hausner): Remove support for old library definition syntax.
-void Parser::ParseLibraryResourceObsoleteSyntax() {
- while (CurrentToken() == Token::kRESOURCE) {
- // Currently the VM does ignore #resource library tags. They are only used
- // by the IDE.
- ConsumeToken();
- ExpectToken(Token::kLPAREN);
- if (CurrentToken() != Token::kSTRING) {
- ErrorMsg("resource url expected");
- }
- ConsumeToken();
- ExpectToken(Token::kRPAREN);
- ExpectToken(Token::kSEMICOLON);
- }
-}
-
-
void Parser::ParseLibraryName() {
ASSERT(IsLiteral("library"));
ConsumeToken();
@@ -4240,12 +4223,10 @@
// TODO(hausner): Remove support for old library definition syntax.
if ((CurrentToken() == Token::kLIBRARY) ||
(CurrentToken() == Token::kIMPORT) ||
- (CurrentToken() == Token::kSOURCE) ||
- (CurrentToken() == Token::kRESOURCE)) {
+ (CurrentToken() == Token::kSOURCE)) {
ParseLibraryNameObsoleteSyntax();
ParseLibraryImportObsoleteSyntax();
ParseLibraryIncludeObsoleteSyntax();
- ParseLibraryResourceObsoleteSyntax();
return;
}
« no previous file with comments | « runtime/vm/parser.h ('k') | runtime/vm/scanner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698