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

Unified Diff: runtime/lib/growable_array.dart

Issue 107333003: Fix an old TODO. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years 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 | « runtime/lib/array.dart ('k') | sdk/lib/_collection_dev/arrays.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/growable_array.dart
===================================================================
--- runtime/lib/growable_array.dart (revision 31056)
+++ runtime/lib/growable_array.dart (working copy)
@@ -19,7 +19,7 @@
// (with a length that has been increased, but without a new element).
if (index is! int) throw new ArgumentError(index);
this.length++;
- Arrays.copy(this,
+ Lists.copy(this,
index,
this,
index + 1,
@@ -31,7 +31,7 @@
if (index is! int) throw new ArgumentError(index);
T result = this[index];
int newLength = this.length - 1;
- Arrays.copy(this,
+ Lists.copy(this,
index + 1,
this,
index,
@@ -95,8 +95,8 @@
}
void removeRange(int start, int end) {
- Arrays.indicesCheck(this, start, end);
- Arrays.copy(this,
+ Lists.indicesCheck(this, start, end);
+ Lists.copy(this,
end,
this,
start,
@@ -113,13 +113,13 @@
}
List<T> sublist(int start, [int end]) {
- Arrays.indicesCheck(this, start, end);
+ Lists.indicesCheck(this, start, end);
if (end == null) end = this.length;
int length = end - start;
if (start == end) return <T>[];
List list = new _GrowableList<T>.withCapacity(length);
list.length = length;
- Arrays.copy(this, start, list, 0, length);
+ Lists.copy(this, start, list, 0, length);
return list;
}
« no previous file with comments | « runtime/lib/array.dart ('k') | sdk/lib/_collection_dev/arrays.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698