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

Unified Diff: runtime/lib/array_patch.dart

Issue 25813002: - Rename arrays to lists: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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
Index: runtime/lib/array_patch.dart
===================================================================
--- runtime/lib/array_patch.dart (revision 28179)
+++ runtime/lib/array_patch.dart (working copy)
@@ -13,17 +13,17 @@
patch class List<E> {
/* patch */ factory List([int length = _GROWABLE_ARRAY_MARKER]) {
if (identical(length, _GROWABLE_ARRAY_MARKER)) {
- return new _GrowableObjectArray<E>(0);
+ return new _GrowableList<E>(0);
}
// All error handling on the length parameter is done at the implementation
- // of new _ObjectArray.
- return new _ObjectArray<E>(length);
+ // of new _List.
+ return new _List<E>(length);
}
/* patch */ factory List.filled(int length, E fill) {
// All error handling on the length parameter is done at the implementation
- // of new _ObjectArray.
- var result = new _ObjectArray<E>(length);
+ // of new _List.
+ var result = new _List<E>(length);
if (fill != null) {
for (int i = 0; i < length; i++) {
result[i] = fill;
@@ -36,9 +36,9 @@
// [elements] contains elements that are already type checked.
factory List._fromLiteral(List elements) {
if (elements.isEmpty) {
- return new _GrowableObjectArray<E>(0);
+ return new _GrowableList<E>(0);
}
- var result = new _GrowableObjectArray<E>.withData(elements);
+ var result = new _GrowableList<E>.withData(elements);
result._setLength(elements.length);
return result;
}
« no previous file with comments | « runtime/lib/array.dart ('k') | runtime/lib/growable_array.cc » ('j') | runtime/vm/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698