| 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 // patch classes for Int8List ..... Float64List and ByteData implementations. | 5 // patch classes for Int8List ..... Float64List and ByteData implementations. |
| 6 | 6 |
| 7 patch class Int8List { | 7 patch class Int8List { |
| 8 /* patch */ factory Int8List(int length) { | 8 /* patch */ factory Int8List(int length) { |
| 9 return new _Int8Array(length); | 9 return new _Int8Array(length); |
| 10 } | 10 } |
| (...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 bool remove(Object element) { | 425 bool remove(Object element) { |
| 426 throw new UnsupportedError( | 426 throw new UnsupportedError( |
| 427 "Cannot remove from a non-extendable array"); | 427 "Cannot remove from a non-extendable array"); |
| 428 } | 428 } |
| 429 | 429 |
| 430 bool removeAt(int index) { | 430 bool removeAt(int index) { |
| 431 throw new UnsupportedError( | 431 throw new UnsupportedError( |
| 432 "Cannot remove from a non-extendable array"); | 432 "Cannot remove from a non-extendable array"); |
| 433 } | 433 } |
| 434 | 434 |
| 435 void removeAll(Iterable elements) { | |
| 436 throw new UnsupportedError( | |
| 437 "Cannot remove from a non-extendable array"); | |
| 438 } | |
| 439 | |
| 440 void retainAll(Iterable elements) { | |
| 441 throw new UnsupportedError( | |
| 442 "Cannot remove from a non-extendable array"); | |
| 443 } | |
| 444 | |
| 445 void removeWhere(bool test(element)) { | 435 void removeWhere(bool test(element)) { |
| 446 throw new UnsupportedError( | 436 throw new UnsupportedError( |
| 447 "Cannot remove from a non-extendable array"); | 437 "Cannot remove from a non-extendable array"); |
| 448 } | 438 } |
| 449 | 439 |
| 450 void retainWhere(bool test(element)) { | 440 void retainWhere(bool test(element)) { |
| 451 throw new UnsupportedError( | 441 throw new UnsupportedError( |
| 452 "Cannot remove from a non-extendable array"); | 442 "Cannot remove from a non-extendable array"); |
| 453 } | 443 } |
| 454 | 444 |
| (...skipping 2685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3140 return value; | 3130 return value; |
| 3141 } | 3131 } |
| 3142 return object; | 3132 return object; |
| 3143 } | 3133 } |
| 3144 | 3134 |
| 3145 | 3135 |
| 3146 void _throwRangeError(int index, int length) { | 3136 void _throwRangeError(int index, int length) { |
| 3147 String message = "$index must be in the range [0..$length)"; | 3137 String message = "$index must be in the range [0..$length)"; |
| 3148 throw new RangeError(message); | 3138 throw new RangeError(message); |
| 3149 } | 3139 } |
| OLD | NEW |