Index: sdk/lib/collection/list.dart |
diff --git a/sdk/lib/collection/list.dart b/sdk/lib/collection/list.dart |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f0b6ace3990c9c8e6387b6dd345efcdeda87669d |
--- /dev/null |
+++ b/sdk/lib/collection/list.dart |
@@ -0,0 +1,29 @@ |
+// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
+// 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. |
+ |
+part of dart.collection; |
+ |
+/** |
+ * Abstract implementation of a list. |
+ * |
+ * All operations are defined in terms of `length`, `operator[]`, |
+ * `operator[]=` and `length=`, which need to be implemented. |
+ */ |
+typedef ListBase<E> = Object with ListMixin<E>; |
+ |
+/** |
+ * Abstract implementation of a fixed-length list. |
+ * |
+ * All operations are defined in terms of `length`, `operator[]` and |
+ * `operator[]=`, which need to be implemented. |
+ */ |
+typedef FixedLengthListBase<E> = ListBase<E> with FixedLengthListMixin<E>; |
floitsch
2013/04/08 09:41:30
I'm not sure Lars will like this.
Why not just hav
Lasse Reichstein Nielsen
2013/04/08 10:17:22
it's doable, but this is better optimizable and gi
Lasse Reichstein Nielsen
2013/04/08 10:22:14
I can remove FixedLengthListBase and UnmodifiableL
|
+ |
+/** |
+ * Abstract implementation of an unmodifiable list. |
+ * |
+ * All operations are defined in terms of `length` and `operator[]`, |
+ * which need to be implemented. |
+ */ |
+typedef UnmodifiableListBase<E> = ListBase<E> with UnmodifiableListMixin<E>; |