| 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 part of dart._collection.dev; | 5 part of dart._collection.dev; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * Class implementing the read-operations on [List]. | 8 * Class implementing the read-operations on [List]. |
| 9 * | 9 * |
| 10 * Implements all read-only operations, except [:operator[]:] and [:length:], | 10 * Implements all read-only operations, except [:operator[]:] and [:length:], |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 void add(E value) { | 83 void add(E value) { |
| 84 throw new UnsupportedError( | 84 throw new UnsupportedError( |
| 85 "Cannot add to a fixed-length list"); | 85 "Cannot add to a fixed-length list"); |
| 86 } | 86 } |
| 87 | 87 |
| 88 void addLast(E value) { | 88 void addLast(E value) { |
| 89 throw new UnsupportedError( | 89 throw new UnsupportedError( |
| 90 "Cannot add to a fixed-length list"); | 90 "Cannot add to a fixed-length list"); |
| 91 } | 91 } |
| 92 | 92 |
| 93 void insert(int index, E value) { |
| 94 throw new UnsupportedError( |
| 95 "Cannot add to a fixed-length list"); |
| 96 } |
| 97 |
| 93 void addAll(Iterable<E> iterable) { | 98 void addAll(Iterable<E> iterable) { |
| 94 throw new UnsupportedError( | 99 throw new UnsupportedError( |
| 95 "Cannot add to a fixed-length list"); | 100 "Cannot add to a fixed-length list"); |
| 96 } | 101 } |
| 97 | 102 |
| 98 void remove(E element) { | 103 void remove(E element) { |
| 99 throw new UnsupportedError( | 104 throw new UnsupportedError( |
| 100 "Cannot remove from a fixed-length list"); | 105 "Cannot remove from a fixed-length list"); |
| 101 } | 106 } |
| 102 | 107 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 void add(E value) { | 169 void add(E value) { |
| 165 throw new UnsupportedError( | 170 throw new UnsupportedError( |
| 166 "Cannot add to an unmodifiable list"); | 171 "Cannot add to an unmodifiable list"); |
| 167 } | 172 } |
| 168 | 173 |
| 169 void addLast(E value) { | 174 void addLast(E value) { |
| 170 throw new UnsupportedError( | 175 throw new UnsupportedError( |
| 171 "Cannot add to an unmodifiable list"); | 176 "Cannot add to an unmodifiable list"); |
| 172 } | 177 } |
| 173 | 178 |
| 179 E insert(int index, E value) { |
| 180 throw new UnsupportedError( |
| 181 "Cannot add to an unmodifiable list"); |
| 182 } |
| 183 |
| 174 void addAll(Iterable<E> iterable) { | 184 void addAll(Iterable<E> iterable) { |
| 175 throw new UnsupportedError( | 185 throw new UnsupportedError( |
| 176 "Cannot add to an unmodifiable list"); | 186 "Cannot add to an unmodifiable list"); |
| 177 } | 187 } |
| 178 | 188 |
| 179 void remove(E element) { | 189 void remove(E element) { |
| 180 throw new UnsupportedError( | 190 throw new UnsupportedError( |
| 181 "Cannot remove from an unmodifiable list"); | 191 "Cannot remove from an unmodifiable list"); |
| 182 } | 192 } |
| 183 | 193 |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 } | 326 } |
| 317 | 327 |
| 318 E remove(int key) { | 328 E remove(int key) { |
| 319 throw new UnsupportedError("Cannot modify an unmodifiable map"); | 329 throw new UnsupportedError("Cannot modify an unmodifiable map"); |
| 320 } | 330 } |
| 321 | 331 |
| 322 void clear() { | 332 void clear() { |
| 323 throw new UnsupportedError("Cannot modify an unmodifiable map"); | 333 throw new UnsupportedError("Cannot modify an unmodifiable map"); |
| 324 } | 334 } |
| 325 } | 335 } |
| OLD | NEW |