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

Unified Diff: runtime/lib/immutable_map.dart

Issue 8321024: Clean up (most) uses of Array. Still more to come in the VM corelib code base. (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 | « runtime/lib/growable_array.dart ('k') | runtime/lib/object.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/immutable_map.dart
===================================================================
--- runtime/lib/immutable_map.dart (revision 486)
+++ runtime/lib/immutable_map.dart (working copy)
@@ -37,20 +37,20 @@
Collection<K> getKeys() {
int numKeys = length;
- Array<K> array = new Array<K>(numKeys);
+ List<K> list = new List<K>(numKeys);
for (int i = 0; i < numKeys; i++) {
- array[i] = kvPairs_[i*2];
+ list[i] = kvPairs_[i*2];
}
- return array;
+ return list;
}
Collection<V> getValues() {
int numValues = length;
- Array<K> array = new Array<K>(numValues);
+ List<K> list = new List<K>(numValues);
for (int i = 0; i < numValues; i++) {
- array[i] = kvPairs_[i*2 + 1];
+ list[i] = kvPairs_[i*2 + 1];
}
- return array;
+ return list;
}
bool containsKey(K key) {
« no previous file with comments | « runtime/lib/growable_array.dart ('k') | runtime/lib/object.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698