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

Unified Diff: pkg/source_maps/lib/printer.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/printer.dart
diff --git a/pkg/source_maps/lib/printer.dart b/pkg/source_maps/lib/printer.dart
index 95539d2b77bf549a41d81bc90208581a71aa1260..0898017c4e28ff265f0ecb81b98048f6f6e3f5ae 100644
--- a/pkg/source_maps/lib/printer.dart
+++ b/pkg/source_maps/lib/printer.dart
@@ -5,7 +5,6 @@
/// Contains a code printer that generates code by recording the source maps.
library source_maps.printer;
-import 'dart:utf' show stringToCodepoints;
import 'builder.dart';
import 'span.dart';
@@ -38,7 +37,7 @@ class Printer {
/// line in the target file (printed here) corresponds to a new line in the
/// source file.
void add(String str, {projectMarks: false}) {
- var chars = stringToCodepoints(str);
+ var chars = str.runes.toList();
var length = chars.length;
for (int i = 0; i < length; i++) {
var c = chars[i];

Powered by Google App Engine
This is Rietveld 408576698