OLD | NEW |
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 dart.collection; | 5 part of dart.collection; |
6 | 6 |
7 | 7 |
8 /** | 8 /** |
9 * A specialized double-linked list of elements that extends [LinkedListEntry]. | 9 * A specialized double-linked list of elements that extends [LinkedListEntry]. |
10 * | 10 * |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 _list._insertBefore(_next, entry, updateFirst: false); | 289 _list._insertBefore(_next, entry, updateFirst: false); |
290 } | 290 } |
291 | 291 |
292 /** | 292 /** |
293 * Insert an element before this element in this element's linked list. | 293 * Insert an element before this element in this element's linked list. |
294 * | 294 * |
295 * This entry must be in a linked list when this method is called. | 295 * This entry must be in a linked list when this method is called. |
296 * The [entry] must not be in a linked list. | 296 * The [entry] must not be in a linked list. |
297 */ | 297 */ |
298 void insertBefore(E entry) { | 298 void insertBefore(E entry) { |
299 _list._insertBefore(this as E, entry, updateFirst: true); | 299 _list._insertBefore(this as dynamic/*=E*/, entry, updateFirst: true); |
300 } | 300 } |
301 } | 301 } |
OLD | NEW |