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

Unified Diff: lib/growable_array.dart

Issue 8348025: - Remove the remaining Array interface. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
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 | « lib/array.dart ('k') | lib/immutable_map.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/growable_array.dart
===================================================================
--- lib/growable_array.dart (revision 543)
+++ lib/growable_array.dart (working copy)
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-class GrowableObjectArray<T> implements Array<T> {
+class GrowableObjectArray<T> implements List<T> {
ObjectArray<T> backingArray;
void copyFrom(List<Object> src, int srcStart, int dstStart, int count) {
@@ -87,7 +87,7 @@
backingArray = new ObjectArray<T>(capacity);
}
- GrowableObjectArray._usingArray(Array<T> array) {
+ GrowableObjectArray._usingArray(List<T> array) {
backingArray = array;
_length = array.length;
if (_length == 0) {
@@ -96,7 +96,7 @@
}
factory GrowableObjectArray.from(Collection<T> other) {
- Array result = new GrowableObjectArray();
+ List result = new GrowableObjectArray();
result.addAll(other);
return result;
}
« no previous file with comments | « lib/array.dart ('k') | lib/immutable_map.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698