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

Unified Diff: sdk/lib/_internal/compiler/implementation/patch_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/patch_parser.dart
diff --git a/sdk/lib/_internal/compiler/implementation/patch_parser.dart b/sdk/lib/_internal/compiler/implementation/patch_parser.dart
index ba2f4984ef92e65b7b32d59b9af662872bf7e383..b528fa20b43310417efe1d8f0248118ecaa0a3ba 100644
--- a/sdk/lib/_internal/compiler/implementation/patch_parser.dart
+++ b/sdk/lib/_internal/compiler/implementation/patch_parser.dart
@@ -162,7 +162,7 @@ class PatchParserTask extends leg.CompilerTask {
measure(() {
// TODO(lrn): Possibly recursively handle 'part' directives in patch.
leg.Script script = compilationUnit.script;
- Token tokens = new StringScanner(script.text).tokenize();
+ Token tokens = new Scanner(script.file).tokenize();
Function idGenerator = compiler.getNextFreeClassId;
PatchListener patchListener =
new PatchElementListener(compiler,

Powered by Google App Engine
This is Rietveld 408576698