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

Unified Diff: sdk/lib/collection/queue.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 | « sdk/lib/_internal/compiler/implementation/util/link_implementation.dart ('k') | sdk/lib/core/iterable.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/collection/queue.dart
diff --git a/sdk/lib/collection/queue.dart b/sdk/lib/collection/queue.dart
index 0da66b5607ebfba71e02b05a7fe2c1c22e104ab3..975939a9da58f105a51a8fd877b86eda9c75a5cd 100644
--- a/sdk/lib/collection/queue.dart
+++ b/sdk/lib/collection/queue.dart
@@ -409,7 +409,7 @@ class ListQueue<E> extends Collection<E> implements Queue<E>{
return _table[(_head + index) & (_table.length - 1)];
}
- List<E> toList({ bool growable: false }) {
+ List<E> toList({ bool growable: true }) {
List<E> list;
if (growable) {
list = new List<E>()..length = length;
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/util/link_implementation.dart ('k') | sdk/lib/core/iterable.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698