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

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

Issue 2974433002: Remaining private libs (Closed)
Patch Set: It's html_common Created 3 years, 5 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
« no previous file with comments | « sdk/lib/collection/linked_list.dart ('k') | sdk/lib/collection/maps.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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 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. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of "collection.dart"; 5 part of "dart:collection";
6 6
7 /** 7 /**
8 * Abstract implementation of a list. 8 * Abstract implementation of a list.
9 * 9 *
10 * `ListBase` can be used as a base class for implementing the `List` interface. 10 * `ListBase` can be used as a base class for implementing the `List` interface.
11 * 11 *
12 * All operations are defined in terms of `length`, `operator[]`, 12 * All operations are defined in terms of `length`, `operator[]`,
13 * `operator[]=` and `length=`, which need to be implemented. 13 * `operator[]=` and `length=`, which need to be implemented.
14 * 14 *
15 * *NOTICE*: Forwarding just these four operations to a normal growable [List] 15 * *NOTICE*: Forwarding just these four operations to a normal growable [List]
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 for (E element in iterable) { 502 for (E element in iterable) {
503 this[index++] = element; 503 this[index++] = element;
504 } 504 }
505 } 505 }
506 } 506 }
507 507
508 Iterable<E> get reversed => new ReversedListIterable<E>(this); 508 Iterable<E> get reversed => new ReversedListIterable<E>(this);
509 509
510 String toString() => IterableBase.iterableToFullString(this, '[', ']'); 510 String toString() => IterableBase.iterableToFullString(this, '[', ']');
511 } 511 }
OLDNEW
« no previous file with comments | « sdk/lib/collection/linked_list.dart ('k') | sdk/lib/collection/maps.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698