Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(136)

Side by Side Diff: runtime/lib/typeddata.dart

Issue 13528004: Remove addLast from List. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove typo Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/lib/growable_array.dart ('k') | runtime/tests/vm/dart/byte_array_optimized_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 set length(newLength) { 370 set length(newLength) {
371 throw new UnsupportedError( 371 throw new UnsupportedError(
372 "Cannot resize a non-extendable array"); 372 "Cannot resize a non-extendable array");
373 } 373 }
374 374
375 void add(value) { 375 void add(value) {
376 throw new UnsupportedError( 376 throw new UnsupportedError(
377 "Cannot add to a non-extendable array"); 377 "Cannot add to a non-extendable array");
378 } 378 }
379 379
380 void addLast(value) {
381 throw new UnsupportedError(
382 "Cannot add to a non-extendable array");
383 }
384
385 void addAll(Iterable value) { 380 void addAll(Iterable value) {
386 throw new UnsupportedError( 381 throw new UnsupportedError(
387 "Cannot add to a non-extendable array"); 382 "Cannot add to a non-extendable array");
388 } 383 }
389 384
390 void sort([int compare(var a, var b)]) { 385 void sort([int compare(var a, var b)]) {
391 return IterableMixinWorkaround.sortList(this, compare); 386 return IterableMixinWorkaround.sortList(this, compare);
392 } 387 }
393 388
394 int indexOf(element, [int start = 0]) { 389 int indexOf(element, [int start = 0]) {
(...skipping 2691 matching lines...) Expand 10 before | Expand all | Expand 10 after
3086 return value; 3081 return value;
3087 } 3082 }
3088 return object; 3083 return object;
3089 } 3084 }
3090 3085
3091 3086
3092 void _throwRangeError(int index, int length) { 3087 void _throwRangeError(int index, int length) {
3093 String message = "$index must be in the range [0..$length)"; 3088 String message = "$index must be in the range [0..$length)";
3094 throw new RangeError(message); 3089 throw new RangeError(message);
3095 } 3090 }
OLDNEW
« no previous file with comments | « runtime/lib/growable_array.dart ('k') | runtime/tests/vm/dart/byte_array_optimized_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698