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 library dart2js.util.setlet; | 5 library dart2js.util.setlet; |
6 | 6 |
7 import 'dart:collection' show IterableBase; | 7 import 'dart:collection' show IterableBase; |
8 | 8 |
9 class Setlet<E> extends IterableBase<E> implements Set<E> { | 9 class Setlet<E> extends IterableBase<E> implements Set<E> { |
10 static const _MARKER = const _SetletMarker(); | 10 static const _MARKER = const _SetletMarker(); |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 if (Setlet._MARKER != candidate) { | 303 if (Setlet._MARKER != candidate) { |
304 _current = candidate; | 304 _current = candidate; |
305 _remaining--; | 305 _remaining--; |
306 return true; | 306 return true; |
307 } | 307 } |
308 } | 308 } |
309 _current = null; | 309 _current = null; |
310 return false; | 310 return false; |
311 } | 311 } |
312 } | 312 } |
OLD | NEW |