Index: pkg/source_maps/lib/span.dart |
diff --git a/pkg/source_maps/lib/span.dart b/pkg/source_maps/lib/span.dart |
index 19829941f3b07c962f1a159979df29c6dd80181e..fd302bcb6793133c906bbbdb33900e28b6ac521e 100644 |
--- a/pkg/source_maps/lib/span.dart |
+++ b/pkg/source_maps/lib/span.dart |
@@ -5,7 +5,7 @@ |
/// Dart classes representing the souce spans and source files. |
library source_maps.span; |
-import 'dart:utf' show stringToCodepoints, codepointsToString; |
+import 'dart:utf' show stringToCodepoints; |
import 'dart:math' show min; |
import 'src/utils.dart'; |
@@ -232,7 +232,7 @@ class SourceFile { |
/// Gets the text at the given offsets. |
String getText(int start, [int end]) { |
- return codepointsToString(_decodedChars.sublist(start, end)); |
+ return new String.fromCharCodes(_decodedChars.sublist(start, end)); |
} |
/// Create a pretty string representation from a span. |