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

Unified Diff: pkg/scheduled_test/lib/src/schedule.dart

Issue 12401002: Make List.from and Iterable.toList default to not growable. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 | « pkg/pathos/lib/path.dart ('k') | pkg/serialization/lib/src/serialization_helpers.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/scheduled_test/lib/src/schedule.dart
diff --git a/pkg/scheduled_test/lib/src/schedule.dart b/pkg/scheduled_test/lib/src/schedule.dart
index b2a4c8977919e6f464003347b140a31a1e2b40de..17ab86adfdba4f4363a4e41c5ea8f69dbfbeed3d 100644
--- a/pkg/scheduled_test/lib/src/schedule.dart
+++ b/pkg/scheduled_test/lib/src/schedule.dart
@@ -471,7 +471,8 @@ class TaskQueue {
var lines = task.toString().split("\n");
var firstLine = task == highlight ?
"> ${lines.first}" : "* ${lines.first}";
- lines = [firstLine]..addAll(lines.skip(1).map((line) => "| $line"));
+ lines = new List.from(lines.skip(1).map((line) => "| $line"));
+ lines.insertRange(0, 1, firstLine);
return lines.join("\n");
}).join("\n");
}
« no previous file with comments | « pkg/pathos/lib/path.dart ('k') | pkg/serialization/lib/src/serialization_helpers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698