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

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

Issue 12123002: Fix class patching involving type parameters: type parameters of patched classes (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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 | « no previous file | runtime/vm/class_finalizer.cc » ('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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 class _GrowableObjectArray<T> implements List<T> { 5 class _GrowableObjectArray<T> implements List<T> {
6 factory _GrowableObjectArray._uninstantiable() { 6 factory _GrowableObjectArray._uninstantiable() {
7 throw new UnsupportedError( 7 throw new UnsupportedError(
8 "GrowableObjectArray can only be allocated by the VM"); 8 "GrowableObjectArray can only be allocated by the VM");
9 } 9 }
10 10
(...skipping 20 matching lines...) Expand all
31 } 31 }
32 32
33 void removeAll(Iterable elements) { 33 void removeAll(Iterable elements) {
34 IterableMixinWorkaround.removeAllList(this, elements); 34 IterableMixinWorkaround.removeAllList(this, elements);
35 } 35 }
36 36
37 void retainAll(Iterable elements) { 37 void retainAll(Iterable elements) {
38 IterableMixinWorkaround.retainAll(this, elements); 38 IterableMixinWorkaround.retainAll(this, elements);
39 } 39 }
40 40
41 void removeMatching(bool test(E element)) { 41 void removeMatching(bool test(T element)) {
42 IterableMixinWorkaround.removeMatchingList(this, test); 42 IterableMixinWorkaround.removeMatchingList(this, test);
43 } 43 }
44 44
45 void retainMatching(bool test(T element)) { 45 void retainMatching(bool test(T element)) {
46 IterableMixinWorkaround.removeMatchingList(this, 46 IterableMixinWorkaround.removeMatchingList(this,
47 (T element) => !test(element)); 47 (T element) => !test(element));
48 } 48 }
49 49
50 void setRange(int start, int length, List<T> from, [int startFrom = 0]) { 50 void setRange(int start, int length, List<T> from, [int startFrom = 0]) {
51 if (length < 0) { 51 if (length < 0) {
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 } 321 }
322 322
323 List<T> toList() { 323 List<T> toList() {
324 return new List<T>.from(this); 324 return new List<T>.from(this);
325 } 325 }
326 326
327 Set<T> toSet() { 327 Set<T> toSet() {
328 return new Set<T>.from(this); 328 return new Set<T>.from(this);
329 } 329 }
330 } 330 }
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/class_finalizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698