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(); |