| 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 html; | 5 part of html; |
| 6 | 6 |
| 7 // Iterator for arrays with fixed size. | 7 // Iterator for arrays with fixed size. |
| 8 class FixedSizeListIterator<T> extends _VariableSizeListIterator<T> { | 8 class FixedSizeListIterator<T> extends _VariableSizeListIterator<T> { |
| 9 FixedSizeListIterator(List<T> array) | 9 FixedSizeListIterator(List<T> array) |
| 10 : super(array), | 10 : super(array), |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 T next() { | 26 T next() { |
| 27 if (!hasNext) { | 27 if (!hasNext) { |
| 28 throw new StateError("No more elements"); | 28 throw new StateError("No more elements"); |
| 29 } | 29 } |
| 30 return _array[_pos++]; | 30 return _array[_pos++]; |
| 31 } | 31 } |
| 32 | 32 |
| 33 final List<T> _array; | 33 final List<T> _array; |
| 34 int _pos; | 34 int _pos; |
| 35 } | 35 } |
| OLD | NEW |