| OLD | NEW |
| 1 part of dart.core; | 1 part of dart.core; |
| 2 | 2 |
| 3 abstract class Iterable<E> { | 3 abstract class Iterable<E> { |
| 4 const Iterable(); | 4 const Iterable(); |
| 5 factory Iterable.generate(int count, [E generator(int index)]) { | 5 factory Iterable.generate(int count, [E generator(int index)]) { |
| 6 if (count <= 0) return new EmptyIterable<E>(); | 6 if (count <= 0) return new EmptyIterable<E>(); |
| 7 return new _GeneratorIterable<E>(count, generator); | 7 return new _GeneratorIterable<E>(count, generator); |
| 8 } | 8 } |
| 9 Iterator<E> get iterator; | 9 Iterator<E> get iterator; |
| 10 Iterable map(f(E element)); | 10 Iterable map(f(E element)); |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 final _Generator<E> _generator; | 71 final _Generator<E> _generator; |
| 72 int _index; | 72 int _index; |
| 73 E _current; | 73 E _current; |
| 74 _GeneratorIterator(this._index, this._end, this._generator); | 74 _GeneratorIterator(this._index, this._end, this._generator); |
| 75 bool moveNext() { | 75 bool moveNext() { |
| 76 if (_index < _end) { | 76 if (_index < _end) { |
| 77 _current = _generator(_index); | 77 _current = _generator(_index); |
| 78 _index++; | 78 _index++; |
| 79 return true; | 79 return true; |
| 80 } else { | 80 } else { |
| 81 _current = ((__x25) => DDC$RT.cast(__x25, Null, E, "CastLiteral", | 81 _current = ((__x7) => DDC$RT.cast(__x7, Null, E, "CastLiteral", |
| 82 """line 360, column 18 of dart:core/iterable.dart: """, __x25 is E, | 82 """line 360, column 18 of dart:core/iterable.dart: """, __x7 is E, |
| 83 false))(null); | 83 false))(null); |
| 84 return false; | 84 return false; |
| 85 } | 85 } |
| 86 } | 86 } |
| 87 E get current => _current; | 87 E get current => _current; |
| 88 } | 88 } |
| 89 abstract class BidirectionalIterator<E> implements Iterator<E> { | 89 abstract class BidirectionalIterator<E> implements Iterator<E> { |
| 90 bool movePrevious(); | 90 bool movePrevious(); |
| 91 } | 91 } |
| OLD | NEW |