| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 util_implementation; | 5 part of util_implementation; |
| 6 | 6 |
| 7 class LinkIterator<T> implements Iterator<T> { | 7 class LinkIterator<T> implements Iterator<T> { |
| 8 T _current; | 8 T _current; |
| 9 Link<T> _link; | 9 Link<T> _link; |
| 10 | 10 |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 if (head == null) { | 175 if (head == null) { |
| 176 head = entry; | 176 head = entry; |
| 177 } else { | 177 } else { |
| 178 lastLink.tail = entry; | 178 lastLink.tail = entry; |
| 179 } | 179 } |
| 180 lastLink = entry; | 180 lastLink = entry; |
| 181 } | 181 } |
| 182 | 182 |
| 183 bool get isEmpty => length == 0; | 183 bool get isEmpty => length == 0; |
| 184 } | 184 } |
| OLD | NEW |