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

Unified Diff: sdk/lib/html/html_common/filtered_element_list.dart

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 | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/svg/dart2js/svg_dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/html_common/filtered_element_list.dart
diff --git a/sdk/lib/html/html_common/filtered_element_list.dart b/sdk/lib/html/html_common/filtered_element_list.dart
index 264472070b6cf7cd6b0ac9252dc493ff4a66577c..f5088aee245bd325790ffabee501013f282eeb57 100644
--- a/sdk/lib/html/html_common/filtered_element_list.dart
+++ b/sdk/lib/html/html_common/filtered_element_list.dart
@@ -133,12 +133,12 @@ class FilteredElementList 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);
}
dynamic reduce(dynamic initialValue,
@@ -150,16 +150,16 @@ class FilteredElementList implements List {
List<Element> toList({ bool growable: true }) =>
new List<Element>.from(this, growable: growable);
Set<Element> toSet() => new Set<Element>.from(this);
- Element firstMatching(bool test(Element value), {Element orElse()}) {
- return _filtered.firstMatching(test, orElse: orElse);
+ Element firstWhere(bool test(Element value), {Element orElse()}) {
+ return _filtered.firstWhere(test, orElse: orElse);
}
- Element lastMatching(bool test(Element value), {Element orElse()}) {
- return _filtered.lastMatching(test, orElse: orElse);
+ Element lastWhere(bool test(Element value), {Element orElse()}) {
+ return _filtered.lastWhere(test, orElse: orElse);
}
- Element singleMatching(bool test(Element value)) {
- return _filtered.singleMatching(test);
+ Element singleWhere(bool test(Element value)) {
+ return _filtered.singleWhere(test);
}
Element elementAt(int index) {
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/svg/dart2js/svg_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698