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

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

Issue 12537009: Rename XMatching to XWhere. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge and rebuild dom libraries. Created 7 years, 9 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/WrappedList.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 bd42f25b48ad335c63d1f396b73de313ae88cbc8..287e8e5b7fb5fd63b099318f2b12b562261d7009 100644
--- a/tools/dom/templates/html/impl/impl_Element.darttemplate
+++ b/tools/dom/templates/html/impl/impl_Element.darttemplate
@@ -99,16 +99,16 @@ class _ChildrenElementList implements List {
return IterableMixinWorkaround.skipWhile(this, test);
}
- Element firstMatching(bool test(Element value), {Element orElse()}) {
- return IterableMixinWorkaround.firstMatching(this, test, orElse);
+ Element firstWhere(bool test(Element value), {Element orElse()}) {
+ return IterableMixinWorkaround.firstWhere(this, test, orElse);
}
- Element lastMatching(bool test(Element value), {Element orElse()}) {
- return IterableMixinWorkaround.lastMatchingInList(this, test, orElse);
+ Element lastWhere(bool test(Element value), {Element orElse()}) {
+ return IterableMixinWorkaround.lastWhereList(this, test, orElse);
}
- Element singleMatching(bool test(Element value)) {
- return IterableMixinWorkaround.singleMatching(this, test);
+ Element singleWhere(bool test(Element value)) {
+ return IterableMixinWorkaround.singleWhere(this, test);
}
Element elementAt(int index) {
@@ -185,12 +185,12 @@ class _ChildrenElementList implements List {
IterableMixinWorkaround.retainAll(this, elements);
}
- void removeMatching(bool test(Element element)) {
- IterableMixinWorkaround.removeMatching(this, test);
+ void removeWhere(bool test(Element element)) {
+ IterableMixinWorkaround.removeWhere(this, test);
}
- void retainMatching(bool test(Element element)) {
- IterableMixinWorkaround.retainMatching(this, test);
+ void retainWhere(bool test(Element element)) {
+ IterableMixinWorkaround.retainWhere(this, test);
}
void removeRange(int start, int rangeLength) {
@@ -342,16 +342,16 @@ class _FrozenElementList implements List {
return IterableMixinWorkaround.skipWhile(this, test);
}
- Element firstMatching(bool test(Element value), {Element orElse()}) {
- return IterableMixinWorkaround.firstMatching(this, test, orElse);
+ Element firstWhere(bool test(Element value), {Element orElse()}) {
+ return IterableMixinWorkaround.firstWhere(this, test, orElse);
}
- Element lastMatching(bool test(Element value), {Element orElse()}) {
- return IterableMixinWorkaround.lastMatchingInList(this, test, orElse);
+ Element lastWhere(bool test(Element value), {Element orElse()}) {
+ return IterableMixinWorkaround.lastWhereList(this, test, orElse);
}
- Element singleMatching(bool test(Element value)) {
- return IterableMixinWorkaround.singleMatching(this, test);
+ Element singleWhere(bool test(Element value)) {
+ return IterableMixinWorkaround.singleWhere(this, test);
}
Element elementAt(int index) {
@@ -444,11 +444,11 @@ class _FrozenElementList implements List {
throw new UnsupportedError('');
}
- void removeMatching(bool test(Element element)) {
+ void removeWhere(bool test(Element element)) {
throw new UnsupportedError('');
}
- void retainMatching(bool test(Element element)) {
+ void retainWhere(bool test(Element element)) {
throw new UnsupportedError('');
}
« no previous file with comments | « tools/dom/src/WrappedList.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