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

Unified Diff: sdk/lib/collection/linked_list.dart

Issue 2930713003: Deprecate LinkedList.
Patch Set: Deprecate LinkedList and LinkedQueue. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sdk/lib/collection/queue.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/collection/linked_list.dart
diff --git a/sdk/lib/collection/linked_list.dart b/sdk/lib/collection/linked_list.dart
index 8ddc05ae6811376f652354702ea813609183e327..41ff14f8c477fbe4be95ea4a379cc9061a15b365 100644
--- a/sdk/lib/collection/linked_list.dart
+++ b/sdk/lib/collection/linked_list.dart
@@ -7,6 +7,9 @@ part of "collection.dart";
/**
* A specialized double-linked list of elements that extends [LinkedListEntry].
*
+ * Deprecated. Use the same named class from package `collection`, instead.
+ * [https://pub.dartlang.org/packages/collection]
+ *
* This is not a generic data structure. It only accepts elements that extend
* the [LinkedListEntry] class. See the [Queue] implementations for
* generic collections that allow constant time adding and removing at the ends.
@@ -27,6 +30,7 @@ part of "collection.dart";
* A `LinkedList` also allows constant time adding and removing at either end,
* and a constant time length getter.
*/
+@deprecated
class LinkedList<E extends LinkedListEntry<E>> extends Iterable<E> {
int _modificationCount = 0;
int _length = 0;
@@ -217,6 +221,9 @@ class _LinkedListIterator<E extends LinkedListEntry<E>> implements Iterator<E> {
/**
* An object that can be an element in a [LinkedList].
*
+ * Deprecated. Use the same named class from package `collection`, instead.
+ * [https://pub.dartlang.org/packages/collection]
+ *
* All elements of a `LinkedList` must extend this class.
* The class provides the internal links that link elements together
* in the `LinkedList`, and a reference to the linked list itself
@@ -228,6 +235,7 @@ class _LinkedListIterator<E extends LinkedListEntry<E>> implements Iterator<E> {
*
* When created, an entry is not in any linked list.
*/
+@deprecated
abstract class LinkedListEntry<E extends LinkedListEntry<E>> {
LinkedList<E> _list;
E _next;
« no previous file with comments | « no previous file | sdk/lib/collection/queue.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698