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

Unified Diff: tools/dom/templates/html/impl/impl_Element.darttemplate

Issue 24740003: Add List.shuffle(). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Adddress comments Created 7 years, 3 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
« no previous file with comments | « tools/dom/src/ImmutableListMixin.dart ('k') | tools/dom/templates/html/impl/impl_Node.darttemplate » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/templates/html/impl/impl_Element.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_Element.darttemplate b/tools/dom/templates/html/impl/impl_Element.darttemplate
index 5732c1ebd5469464a8cdc917a75156394a97d705..5494ca8ca4b4634a7064e5337d4381e60c7feffd 100644
--- a/tools/dom/templates/html/impl/impl_Element.darttemplate
+++ b/tools/dom/templates/html/impl/impl_Element.darttemplate
@@ -58,6 +58,10 @@ class _ChildrenElementList extends ListBase<Element> {
throw new UnsupportedError('Cannot sort element lists');
}
+ void shuffle() {
+ throw new UnsupportedError('Cannot shuffle element lists');
+ }
+
void removeWhere(bool test(Element element)) {
_filter(test, false);
}
@@ -276,6 +280,10 @@ class _FrozenElementList<T extends Element> extends ListBase<T> implements Eleme
throw new UnsupportedError('Cannot sort list');
}
+ void shuffle() {
+ throw new UnsupportedError('Cannot shuffle list');
+ }
+
Element get first => _nodeList.first;
Element get last => _nodeList.last;
« no previous file with comments | « tools/dom/src/ImmutableListMixin.dart ('k') | tools/dom/templates/html/impl/impl_Node.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698