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

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

Issue 12188011: Added expand method to iterables. (Closed) Base URL: https://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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/dom/src/CssClassSet.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 58c63f52d6e535a4761bafab31b82fd3f175242f..ed07849f7d68c57951b5753827d02e41cb4b4c9f 100644
--- a/tools/dom/templates/html/impl/impl_Element.darttemplate
+++ b/tools/dom/templates/html/impl/impl_Element.darttemplate
@@ -73,6 +73,10 @@ class _ChildrenElementList implements List {
return IterableMixinWorkaround.where(this, f);
}
+ Iterable expand(Iterable f(Element element)) {
+ return IterableMixinWorkaround.expand(this, f);
+ }
+
bool get isEmpty {
return _element.$dom_firstElementChild == null;
}
@@ -290,6 +294,10 @@ class _FrozenElementList implements List {
return IterableMixinWorkaround.where(this, f);
}
+ Iterable expand(Iterable f(Element element)) {
+ return IterableMixinWorkaround.expand(this, f);
+ }
+
bool every(bool f(Element element)) {
for(Element element in this) {
if (!f(element)) {
« no previous file with comments | « tools/dom/src/CssClassSet.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