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

Unified Diff: vm/parser.cc

Issue 9431038: Fix issue 732: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 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 | « vm/parser.h ('k') | vm/scanner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/parser.cc
===================================================================
--- vm/parser.cc (revision 4470)
+++ vm/parser.cc (working copy)
@@ -3376,6 +3376,23 @@
}
+void Parser::ParseLibraryResource() {
+ TRACE_PARSER("ParseLibraryResource");
+ 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::ParseLibraryDefinition() {
TRACE_PARSER("ParseLibraryDefinition");
// Handle the script tag.
@@ -3387,6 +3404,7 @@
ParseLibraryName();
ParseLibraryImport();
ParseLibraryInclude();
+ ParseLibraryResource();
}
« no previous file with comments | « vm/parser.h ('k') | vm/scanner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698