| OLD | NEW |
| 1 // -- start List<$E> mixins. | 1 // -- start List<$E> mixins. |
| 2 // $E is the element type. | 2 // $E is the element type. |
| 3 | 3 |
| 4 // From Iterable<$E>: | 4 // From Iterable<$E>: |
| 5 | 5 |
| 6 Iterator<$E> get iterator { | 6 Iterator<$E> get iterator { |
| 7 // Note: NodeLists are not fixed size. And most probably length shouldn't | 7 // Note: NodeLists are not fixed size. And most probably length shouldn't |
| 8 // be cached in both iterator _and_ forEach method. For now caching it | 8 // be cached in both iterator _and_ forEach method. For now caching it |
| 9 // for consistency. | 9 // for consistency. |
| 10 return new FixedSizeListIterator<$E>(this); | 10 return new FixedSizeListIterator<$E>(this); |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 if (end == null) end = length; | 192 if (end == null) end = length; |
| 193 return Lists.getRange(this, start, end, <$E>[]); | 193 return Lists.getRange(this, start, end, <$E>[]); |
| 194 } | 194 } |
| 195 | 195 |
| 196 List<$E> getRange(int start, int rangeLength) => | 196 List<$E> getRange(int start, int rangeLength) => |
| 197 sublist(start, start + rangeLength); | 197 sublist(start, start + rangeLength); |
| 198 | 198 |
| 199 Map<int, $E> asMap() => | 199 Map<int, $E> asMap() => |
| 200 IterableMixinWorkaround.asMapList(this); | 200 IterableMixinWorkaround.asMapList(this); |
| 201 | 201 |
| 202 String toString() { |
| 203 StringBuffer buffer = new StringBuffer('['); |
| 204 buffer.writeAll(this, ', '); |
| 205 buffer.write(']'); |
| 206 return buffer.toString(); |
| 207 } |
| 208 |
| 202 // -- end List<$E> mixins. | 209 // -- end List<$E> mixins. |
| OLD | NEW |