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

Side by Side Diff: tools/dom/src/ImmutableListMixin.dart

Issue 15431003: Cleanup of various DOM dart2js and dart_analyzer warnings (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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 | « tools/dom/src/EventStreamProvider.dart ('k') | tools/dom/src/TemplateBindings.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) 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 part of dart.dom.html; 5 part of dart.dom.html;
6 6
7 abstract class ImmutableListMixin<E> implements List<E> { 7 abstract class ImmutableListMixin<E> implements List<E> {
8 // From Iterable<$E>: 8 // From Iterable<$E>:
9 Iterator<E> get iterator { 9 Iterator<E> get iterator {
10 // Note: NodeLists are not fixed size. And most probably length shouldn't 10 // Note: NodeLists are not fixed size. And most probably length shouldn't
(...skipping 29 matching lines...) Expand all
40 } 40 }
41 41
42 E removeAt(int pos) { 42 E removeAt(int pos) {
43 throw new UnsupportedError("Cannot remove from immutable List."); 43 throw new UnsupportedError("Cannot remove from immutable List.");
44 } 44 }
45 45
46 E removeLast() { 46 E removeLast() {
47 throw new UnsupportedError("Cannot remove from immutable List."); 47 throw new UnsupportedError("Cannot remove from immutable List.");
48 } 48 }
49 49
50 void remove(Object object) { 50 bool remove(Object object) {
51 throw new UnsupportedError("Cannot remove from immutable List."); 51 throw new UnsupportedError("Cannot remove from immutable List.");
52 } 52 }
53 53
54 void removeWhere(bool test(E element)) { 54 void removeWhere(bool test(E element)) {
55 throw new UnsupportedError("Cannot remove from immutable List."); 55 throw new UnsupportedError("Cannot remove from immutable List.");
56 } 56 }
57 57
58 void retainWhere(bool test(E element)) { 58 void retainWhere(bool test(E element)) {
59 throw new UnsupportedError("Cannot remove from immutable List."); 59 throw new UnsupportedError("Cannot remove from immutable List.");
60 } 60 }
61 61
62 void setRange(int start, int end, Iterable<E> iterable, [int skipCount]) { 62 void setRange(int start, int end, Iterable<E> iterable, [int skipCount = 0]) {
63 throw new UnsupportedError("Cannot setRange on immutable List."); 63 throw new UnsupportedError("Cannot setRange on immutable List.");
64 } 64 }
65 65
66 void removeRange(int start, int end) { 66 void removeRange(int start, int end) {
67 throw new UnsupportedError("Cannot removeRange on immutable List."); 67 throw new UnsupportedError("Cannot removeRange on immutable List.");
68 } 68 }
69 69
70 void replaceRange(int start, int end, Iterable<E> iterable) { 70 void replaceRange(int start, int end, Iterable<E> iterable) {
71 throw new UnsupportedError("Cannot modify an immutable List."); 71 throw new UnsupportedError("Cannot modify an immutable List.");
72 } 72 }
73 73
74 void fillRange(int start, int end, [E fillValue]) { 74 void fillRange(int start, int end, [E fillValue]) {
75 throw new UnsupportedError("Cannot modify an immutable List."); 75 throw new UnsupportedError("Cannot modify an immutable List.");
76 } 76 }
77 } 77 }
OLDNEW
« no previous file with comments | « tools/dom/src/EventStreamProvider.dart ('k') | tools/dom/src/TemplateBindings.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698