| OLD | NEW |
| 1 part of dart.collection; | 1 part of dart.collection; |
| 2 class LinkedList<E extends LinkedListEntry<E>> extends IterableBase<E> implemen
ts _LinkedListLink {int _modificationCount = 0; | 2 class LinkedList<E extends LinkedListEntry<E>> extends IterableBase<E> implemen
ts _LinkedListLink {int _modificationCount = 0; |
| 3 int _length = 0; | 3 int _length = 0; |
| 4 _LinkedListLink _next; | 4 _LinkedListLink _next; |
| 5 _LinkedListLink _previous; | 5 _LinkedListLink _previous; |
| 6 LinkedList() { | 6 LinkedList() { |
| 7 _next = _previous = this; | 7 _next = _previous = this; |
| 8 } | 8 } |
| 9 void addFirst(E entry) { | 9 void addFirst(E entry) { |
| 10 _insertAfter(this, entry); | 10 _insertAfter(this, entry); |
| 11 } | 11 } |
| 12 void add(E entry) { | 12 void add(E entry) { |
| 13 _insertAfter(_previous, entry); | 13 _insertAfter(_previous, entry); |
| 14 } | 14 } |
| 15 void addAll(Iterable<E> entries) { | 15 void addAll(Iterable<E> entries) { |
| 16 entries.forEach(((__x10) => DEVC$RT.wrap((void f(dynamic __u5)) { | 16 entries.forEach((entry) => _insertAfter(_previous, DEVC$RT.cast(entry, dynamic
, E, "CompositeCast", """line 65, column 56 of dart:collection/linked_list.dart:
""", entry is E, false))); |
| 17 void c(dynamic x0) => f(x0); | |
| 18 return f == null ? null : c; | |
| 19 } | |
| 20 , __x10, __t8, DEVC$RT.type((__t6<E> _) { | |
| 21 } | |
| 22 ), "WrapLiteral", """line 65, column 21 of dart:collection/linked_list.dart: "
"", __x10 is __t6<E>))((entry) => _insertAfter(_previous, DEVC$RT.cast(entry, dy
namic, E, "CompositeCast", """line 65, column 56 of dart:collection/linked_list.
dart: """, entry is E, false)))); | |
| 23 } | 17 } |
| 24 bool remove(E entry) { | 18 bool remove(E entry) { |
| 25 if (entry._list != this) return false; | 19 if (entry._list != this) return false; |
| 26 _unlink(entry); | 20 _unlink(entry); |
| 27 return true; | 21 return true; |
| 28 } | 22 } |
| 29 Iterator<E> get iterator => new _LinkedListIterator<E>(this); | 23 Iterator<E> get iterator => new _LinkedListIterator<E>(this); |
| 30 int get length => _length; | 24 int get length => _length; |
| 31 void clear() { | 25 void clear() { |
| 32 _modificationCount++; | 26 _modificationCount++; |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 if (identical(_previous, _list)) return null; | 126 if (identical(_previous, _list)) return null; |
| 133 return DEVC$RT.cast(_previous, _LinkedListLink, E, "CastUser", """line 261, col
umn 12 of dart:collection/linked_list.dart: """, _previous is E, false); | 127 return DEVC$RT.cast(_previous, _LinkedListLink, E, "CastUser", """line 261, col
umn 12 of dart:collection/linked_list.dart: """, _previous is E, false); |
| 134 } | 128 } |
| 135 void insertAfter(E entry) { | 129 void insertAfter(E entry) { |
| 136 _list._insertAfter(this, entry); | 130 _list._insertAfter(this, entry); |
| 137 } | 131 } |
| 138 void insertBefore(E entry) { | 132 void insertBefore(E entry) { |
| 139 _list._insertAfter(_previous, entry); | 133 _list._insertAfter(_previous, entry); |
| 140 } | 134 } |
| 141 } | 135 } |
| 142 typedef void __t6<E>(E __u7); | |
| 143 typedef void __t8(dynamic __u9); | |
| OLD | NEW |