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

Unified Diff: tools/dom/src/WrappedList.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 | « tools/dom/src/CssClassSet.dart ('k') | tools/dom/templates/html/impl/impl_Element.darttemplate » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/src/WrappedList.dart
diff --git a/tools/dom/src/WrappedList.dart b/tools/dom/src/WrappedList.dart
index 5d649f69fed182fccbee6cbb350bb1530e8ad3f2..1d7b005f9a7eeb8ccbadc0f7523387e7e39ca891 100644
--- a/tools/dom/src/WrappedList.dart
+++ b/tools/dom/src/WrappedList.dart
@@ -63,13 +63,13 @@ class _WrappedList<E> implements List<E> {
E get single => _list.single;
- E firstMatching(bool test(E value), { E orElse() }) =>
- _list.firstMatching(test, orElse: orElse);
+ E firstWhere(bool test(E value), { E orElse() }) =>
+ _list.firstWhere(test, orElse: orElse);
- E lastMatching(bool test(E value), {E orElse()}) =>
- _list.lastMatching(test, orElse: orElse);
+ E lastWhere(bool test(E value), {E orElse()}) =>
+ _list.lastWhere(test, orElse: orElse);
- E singleMatching(bool test(E value)) => _list.singleMatching(test);
+ E singleWhere(bool test(E value)) => _list.singleWhere(test);
E elementAt(int index) => _list.elementAt(index);
@@ -85,9 +85,9 @@ class _WrappedList<E> implements List<E> {
void retainAll(Iterable elements) { _list.retainAll(elements); }
- void removeMatching(bool test(E element)) { _list.removeMatching(test); }
+ void removeWhere(bool test(E element)) { _list.removeWhere(test); }
- void retainMatching(bool test(E element)) { _list.retainMatching(test); }
+ void retainWhere(bool test(E element)) { _list.retainWhere(test); }
void clear() { _list.clear(); }
« no previous file with comments | « tools/dom/src/CssClassSet.dart ('k') | tools/dom/templates/html/impl/impl_Element.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698