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

Unified Diff: tools/dom/templates/immutable_list_mixin.darttemplate

Issue 12036071: Fixing analyzer issues in DOM libs. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: tools/dom/templates/immutable_list_mixin.darttemplate
diff --git a/tools/dom/templates/immutable_list_mixin.darttemplate b/tools/dom/templates/immutable_list_mixin.darttemplate
index b7c8507e7577208db38b9b629e2ff453b3d3a1e3..3a09ac50273d94ae73545c1c1ff709948766f6f9 100644
--- a/tools/dom/templates/immutable_list_mixin.darttemplate
+++ b/tools/dom/templates/immutable_list_mixin.darttemplate
@@ -26,11 +26,13 @@ $endif
void forEach(void f($E element)) => IterableMixinWorkaround.forEach(this, f);
- String join([String separator]) => IterableMixinWorkaround.joinList(this, separator);
+ String join([String separator]) =>
+ IterableMixinWorkaround.joinList(this, separator);
List mappedBy(f($E element)) => IterableMixinWorkaround.mappedByList(this, f);
- Iterable<$E> where(bool f($E element)) => IterableMixinWorkaround.where(this, f);
+ Iterable<$E> where(bool f($E element)) =>
+ IterableMixinWorkaround.where(this, f);
bool every(bool f($E element)) => IterableMixinWorkaround.every(this, f);
@@ -98,6 +100,9 @@ $else
// clear() defined by IDL.
$endif
+ List<$E> get reversed =>
+ new ReversedListView<$E>(this, 0, null);
+
void sort([int compare($E a, $E b)]) {
throw new UnsupportedError("Cannot sort immutable List.");
}
@@ -126,9 +131,11 @@ $endif
throw new StateError("More than one element");
}
- $E min([int compare($E a, $E b)]) => IterableMixinWorkaround.min(this, compare);
+ $E min([int compare($E a, $E b)]) =>
+ IterableMixinWorkaround.min(this, compare);
- $E max([int compare($E a, $E b)]) => IterableMixinWorkaround.max(this, compare);
+ $E max([int compare($E a, $E b)]) =>
+ IterableMixinWorkaround.max(this, compare);
$E removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
« sdk/lib/svg/dart2js/svg_dart2js.dart ('K') | « tools/dom/templates/html/impl/impl_Node.darttemplate ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698