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

Side by Side Diff: lib/dom/templates/immutable_list_mixin.darttemplate

Issue 9963029: Fix some warnings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reupload (due to error messages during upload) Created 8 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
OLDNEW
1 // -- start List<$E> mixins. 1 // -- start List<$E> mixins.
2 // $E is the element type. 2 // $E is the element type.
3 3
4 // From Iterable<$E>: 4 // From Iterable<$E>:
5 5
6 Iterator<$E> iterator() { 6 Iterator<$E> iterator() {
7 // Note: NodeLists are not fixed size. And most probably length shouldn't 7 // Note: NodeLists are not fixed size. And most probably length shouldn't
8 // be cached in both iterator _and_ forEach method. For now caching it 8 // be cached in both iterator _and_ forEach method. For now caching it
9 // for consistency. 9 // for consistency.
10 return new _FixedSizeListIterator<$E>(this); 10 return new _FixedSizeListIterator<$E>(this);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 } 44 }
45 45
46 int indexOf($E element, [int start = 0]) => 46 int indexOf($E element, [int start = 0]) =>
47 _Lists.indexOf(this, element, start, this.length); 47 _Lists.indexOf(this, element, start, this.length);
48 48
49 int lastIndexOf($E element, [int start = 0]) => 49 int lastIndexOf($E element, [int start = 0]) =>
50 _Lists.lastIndexOf(this, element, start); 50 _Lists.lastIndexOf(this, element, start);
51 51
52 $E last() => this[length - 1]; 52 $E last() => this[length - 1];
53 53
54 // FIXME: implement thesee. 54 // FIXME: implement these.
55 void setRange(int start, int length, List<$E> from, [int startFrom]) { 55 void setRange(int start, int rangeLength, List<$E> from, [int startFrom]) {
56 throw new UnsupportedOperationException("Cannot setRange on immutable List." ); 56 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
57 } 57 }
58 void removeRange(int start, int length) { 58 void removeRange(int start, int rangeLength) {
59 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 59 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
60 } 60 }
61 void insertRange(int start, int length, [$E initialValue]) { 61 void insertRange(int start, int rangeLength, [$E initialValue]) {
62 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 62 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
63 } 63 }
64 List<$E> getRange(int start, int length) => 64 List<$E> getRange(int start, int rangeLength) =>
65 _Lists.getRange(this, start, length, <$E>[]); 65 _Lists.getRange(this, start, rangeLength, <$E>[]);
66 66
67 // -- end List<$E> mixins. 67 // -- end List<$E> mixins.
OLDNEW
« no previous file with comments | « lib/dom/templates/html/impl/impl_SVGElement.darttemplate ('k') | lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698