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

Unified Diff: sdk/lib/_internal/dartdoc/lib/classify.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/dartdoc/lib/classify.dart
diff --git a/sdk/lib/_internal/dartdoc/lib/classify.dart b/sdk/lib/_internal/dartdoc/lib/classify.dart
index 5d3caa7973f635ac1b457048e4358cf523f7c4ce..e4ed4db5c9d5e9a379de8de8080d3619bd4ae30b 100644
--- a/sdk/lib/_internal/dartdoc/lib/classify.dart
+++ b/sdk/lib/_internal/dartdoc/lib/classify.dart
@@ -39,7 +39,7 @@ class Classification {
String classifySource(String text) {
try {
var html = new StringBuffer();
- var tokenizer = new StringScanner(text, includeComments: true);
+ var tokenizer = new StringScanner.fromString(text, includeComments: true);
var whitespaceOffset = 0;
var token = tokenizer.tokenize();

Powered by Google App Engine
This is Rietveld 408576698