| 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> iterator() { | 6 Iterator<$E> 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 void removeRange(int start, int length) { | 58 void removeRange(int start, int length) { |
| 59 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | 59 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); |
| 60 } | 60 } |
| 61 void insertRange(int start, int length, [$E initialValue]) { | 61 void insertRange(int start, int length, [$E initialValue]) { |
| 62 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | 62 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); |
| 63 } | 63 } |
| 64 List<$E> getRange(int start, int length) => | 64 List<$E> getRange(int start, int length) => |
| 65 _Lists.getRange(this, start, length, <$E>[]); | 65 _Lists.getRange(this, start, length, <$E>[]); |
| 66 | 66 |
| 67 // -- end List<$E> mixins. | 67 // -- end List<$E> mixins. |
| OLD | NEW |