Index: pkg/source_maps/lib/span.dart |
diff --git a/pkg/source_maps/lib/span.dart b/pkg/source_maps/lib/span.dart |
index e5057fcebd717785f9c1330b877d9045c1250d61..17ccd272d3cca1a3ac549023a9e4a24d51e6ef83 100644 |
--- a/pkg/source_maps/lib/span.dart |
+++ b/pkg/source_maps/lib/span.dart |
@@ -5,7 +5,6 @@ |
/// Dart classes representing the souce spans and source files. |
library source_maps.span; |
-import 'dart:utf' show stringToCodepoints; |
import 'dart:math' show min, max; |
import 'src/utils.dart'; |
@@ -201,7 +200,7 @@ class SourceFile { |
SourceFile.text(this.url, String text) |
: _lineStarts = <int>[0], |
- _decodedChars = stringToCodepoints(text) { |
+ _decodedChars = text.runes.toList() { |
for (int i = 0; i < _decodedChars.length; i++) { |
var c = _decodedChars[i]; |
if (c == _CR) { |