Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | |
| 2 // for details. All rights reserved. Use of this source code is governed by a | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 part of dart.collection; | |
| 6 | |
| 7 /** | |
| 8 * Abstract implementation of a list. | |
| 9 * | |
| 10 * All operations are defined in terms of `length`, `operator[]`, | |
| 11 * `operator[]=` and `length=`, which need to be implemented. | |
| 12 */ | |
| 13 typedef ListBase<E> = Object with ListMixin<E>; | |
| 14 | |
| 15 /** | |
| 16 * Abstract implementation of a fixed-length list. | |
| 17 * | |
| 18 * All operations are defined in terms of `length`, `operator[]` and | |
| 19 * `operator[]=`, which need to be implemented. | |
| 20 */ | |
| 21 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
| |
| 22 | |
| 23 /** | |
| 24 * Abstract implementation of an unmodifiable list. | |
| 25 * | |
| 26 * All operations are defined in terms of `length` and `operator[]`, | |
| 27 * which need to be implemented. | |
| 28 */ | |
| 29 typedef UnmodifiableListBase<E> = ListBase<E> with UnmodifiableListMixin<E>; | |
| OLD | NEW |