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

Unified Diff: dart/frog/leg/scanner/parser.dart

Issue 8462004: Integrate leg as a component in test.py. Also update presubmit script to run tests with leg. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 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 | « dart/frog/leg/scanner/listener.dart ('k') | dart/frog/leg/typechecker.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/frog/leg/scanner/parser.dart
===================================================================
--- dart/frog/leg/scanner/parser.dart (revision 1186)
+++ dart/frog/leg/scanner/parser.dart (working copy)
@@ -34,11 +34,13 @@
case Keyword.TYPEDEF:
token = parseNamedFunctionAlias(token);
break;
- case const SourceString("#"):
- token = parseLibraryTags(token);
- break;
default:
- token = parseTopLevelMember(token);
+ // TODO(ahe): Work around frog switch bug #314.
+ if (token.value == const SourceString("#")) {
+ token = parseLibraryTags(token);
+ } else {
+ token = parseTopLevelMember(token);
+ }
break;
}
}
« no previous file with comments | « dart/frog/leg/scanner/listener.dart ('k') | dart/frog/leg/typechecker.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698