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

Side by Side Diff: sdk/lib/collection/list.dart

Issue 13774006: Moving ListBase, FixedLengthListMixin and UmodifiableListMixin to collection. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sdk/lib/collection/collections.dart ('k') | sdk/lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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>;
OLDNEW
« no previous file with comments | « sdk/lib/collection/collections.dart ('k') | sdk/lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698