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

Unified Diff: sdk/lib/_internal/compiler/implementation/scanner/parser.dart

Issue 27510003: Scanner for UTF-8 byte arrays (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fixes compiler tests Created 7 years, 2 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
Index: sdk/lib/_internal/compiler/implementation/scanner/parser.dart
diff --git a/sdk/lib/_internal/compiler/implementation/scanner/parser.dart b/sdk/lib/_internal/compiler/implementation/scanner/parser.dart
index 79eae5e5d305f0bef7579c65a33ff7218226471c..47dba975657c15ed9b8b2f1f36df3832685a5bde 100644
--- a/sdk/lib/_internal/compiler/implementation/scanner/parser.dart
+++ b/sdk/lib/_internal/compiler/implementation/scanner/parser.dart
@@ -637,12 +637,12 @@ class Parser {
} while (optional(',', token));
Token next = token.next;
if (identical(token.stringValue, '>>')) {
- token = new Token(GT_INFO, token.charOffset);
- token.next = new Token(GT_INFO, token.charOffset + 1);
+ token = new SymbolToken(GT_INFO, token.charOffset);
+ token.next = new SymbolToken(GT_INFO, token.charOffset + 1);
token.next.next = next;
} else if (identical(token.stringValue, '>>>')) {
- token = new Token(GT_INFO, token.charOffset);
- token.next = new Token(GT_GT_INFO, token.charOffset + 1);
+ token = new SymbolToken(GT_INFO, token.charOffset);
+ token.next = new SymbolToken(GT_GT_INFO, token.charOffset + 1);
token.next.next = next;
}
endStuff(count, begin, token);

Powered by Google App Engine
This is Rietveld 408576698