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

Unified Diff: pkg/source_maps/lib/span.dart

Issue 22909059: Some more removals of dart:utf. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Change ArgumentError to FormatException. Created 7 years, 4 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: 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) {

Powered by Google App Engine
This is Rietveld 408576698