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

Unified Diff: utils/pub/log.dart

Issue 12282038: Remove deprecated string features. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge to head Created 7 years, 10 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
« no previous file with comments | « utils/pub/io.dart ('k') | utils/pub/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/log.dart
diff --git a/utils/pub/log.dart b/utils/pub/log.dart
index 9a555ea3d354c6495c507ab29526cc328cfe315a..606aa41d4f1e405dc7e68ee9cf07cd8f25cb24ed 100644
--- a/utils/pub/log.dart
+++ b/utils/pub/log.dart
@@ -153,11 +153,11 @@ void recordTranscript() {
void dumpTranscript() {
if (_transcript == null) return;
- stderrSink.add('---- Log transcript ----\n'.charCodes);
+ stderrSink.add('---- Log transcript ----\n'.codeUnits);
for (var entry in _transcript) {
_logToStderrWithLabel(entry);
}
- stderrSink.add('---- End log transcript ----\n'.charCodes);
+ stderrSink.add('---- End log transcript ----\n'.codeUnits);
}
/// Sets the verbosity to "normal", which shows errors, warnings, and messages.
@@ -213,15 +213,15 @@ void _logToStream(StreamSink<List<int>> sink, Entry entry, {bool showLabel}) {
for (var line in entry.lines) {
if (showLabel) {
if (firstLine) {
- sink.add(entry.level.name.charCodes);
- sink.add(': '.charCodes);
+ sink.add(entry.level.name.codeUnits);
+ sink.add(': '.codeUnits);
} else {
- sink.add(' | '.charCodes);
+ sink.add(' | '.codeUnits);
}
}
- sink.add(line.charCodes);
- sink.add('\n'.charCodes);
+ sink.add(line.codeUnits);
+ sink.add('\n'.codeUnits);
firstLine = false;
}
« no previous file with comments | « utils/pub/io.dart ('k') | utils/pub/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698