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

Unified Diff: frog/tokenizer.g.dart

Issue 9139062: fix pseudo keyword test failues (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 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 | « frog/token_kind.g.dart ('k') | tests/language/language.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/tokenizer.g.dart
diff --git a/frog/tokenizer.g.dart b/frog/tokenizer.g.dart
index e0f635b3569611e29c9884142fda4c26f90a4e6b..1908b95ad58c354c6b56c8670c4c0a880fea30f7 100644
--- a/frog/tokenizer.g.dart
+++ b/frog/tokenizer.g.dart
@@ -274,7 +274,15 @@ class Tokenizer extends TokenizerBase {
case 4:
ch = _text.charCodeAt(i0);
if (ch == 99/*c*/) {
- if (_text.charCodeAt(i0+1) == 97/*a*/ && _text.charCodeAt(i0+2) == 115/*s*/ && _text.charCodeAt(i0+3) == 101/*e*/) return TokenKind.CASE;
+ ch = _text.charCodeAt(i0+1);
+ if (ch == 97/*a*/) {
+ ch = _text.charCodeAt(i0+2);
+ if (ch == 108/*l*/) {
+ if (_text.charCodeAt(i0+3) == 108/*l*/) return TokenKind.CALL;
+ } else if (ch == 115/*s*/) {
+ if (_text.charCodeAt(i0+3) == 101/*e*/) return TokenKind.CASE;
+ }
+ }
} else if (ch == 101/*e*/) {
if (_text.charCodeAt(i0+1) == 108/*l*/ && _text.charCodeAt(i0+2) == 115/*s*/ && _text.charCodeAt(i0+3) == 101/*e*/) return TokenKind.ELSE;
} else if (ch == 110/*n*/) {
« no previous file with comments | « frog/token_kind.g.dart ('k') | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698