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

Unified Diff: runtime/lib/array.dart

Issue 8339015: Rename GrowableObjectArray to ListImplementation. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 9 years, 2 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 | « no previous file | runtime/lib/growable_array.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/array.dart
===================================================================
--- runtime/lib/array.dart (revision 507)
+++ runtime/lib/array.dart (working copy)
@@ -9,7 +9,7 @@
class ListFactory<T> {
factory List.from(Iterable<T> other) {
- GrowableObjectArray<T> list = new GrowableObjectArray<T>();
+ List<T> list = new List<T>();
for (final e in other) {
list.add(e);
}
@@ -30,7 +30,7 @@
factory List([int length = null]) {
if (length === null) {
- return new GrowableObjectArray<T>();
+ return new ListImplementation<T>();
} else {
return new ObjectArray<T>(length);
}
@@ -98,7 +98,7 @@
}
Collection<T> filter(bool f(T element)) {
- return Collections.filter(this, new GrowableObjectArray<T>(), f);
+ return Collections.filter(this, new List<T>(), f);
}
bool every(bool f(T element)) {
@@ -217,7 +217,7 @@
}
Collection<T> filter(bool f(T element)) {
- return Collections.filter(this, new GrowableObjectArray<T>(), f);
+ return Collections.filter(this, new List<T>(), f);
}
bool every(bool f(T element)) {
« no previous file with comments | « no previous file | runtime/lib/growable_array.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698