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

Unified Diff: tools/dom/src/CssClassSet.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 | « tests/lib/async/stream_controller_async_test.dart ('k') | tools/dom/src/WrappedList.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/src/CssClassSet.dart
diff --git a/tools/dom/src/CssClassSet.dart b/tools/dom/src/CssClassSet.dart
index 38a639793987e19dba1d46fed241aaafe81a8af0..c1ef6bbad732b83c338fd7d5e033464645e7a997 100644
--- a/tools/dom/src/CssClassSet.dart
+++ b/tools/dom/src/CssClassSet.dart
@@ -94,12 +94,12 @@ abstract class CssClassSet implements Set<String> {
_modify((s) => s.retainAll(iterable));
}
- void removeMatching(bool test(String name)) {
- _modify((s) => s.removeMatching(test));
+ void removeWhere(bool test(String name)) {
+ _modify((s) => s.removeWhere(test));
}
- void retainMatching(bool test(String name)) {
- _modify((s) => s.retainMatching(test));
+ void retainWhere(bool test(String name)) {
+ _modify((s) => s.retainWhere(test));
}
bool isSubsetOf(Collection<String> collection) =>
@@ -127,12 +127,12 @@ abstract class CssClassSet implements Set<String> {
Iterable<String> skip(int n) => readClasses().skip(n);
Iterable<String> skipWhile(bool test(String value)) =>
readClasses().skipWhile(test);
- String firstMatching(bool test(String value), { String orElse() }) =>
- readClasses().firstMatching(test, orElse: orElse);
- String lastMatching(bool test(String value), {String orElse()}) =>
- readClasses().lastMatching(test, orElse: orElse);
- String singleMatching(bool test(String value)) =>
- readClasses().singleMatching(test);
+ String firstWhere(bool test(String value), { String orElse() }) =>
+ readClasses().firstWhere(test, orElse: orElse);
+ String lastWhere(bool test(String value), {String orElse()}) =>
+ readClasses().lastWhere(test, orElse: orElse);
+ String singleWhere(bool test(String value)) =>
+ readClasses().singleWhere(test);
String elementAt(int index) => readClasses().elementAt(index);
void clear() {
« no previous file with comments | « tests/lib/async/stream_controller_async_test.dart ('k') | tools/dom/src/WrappedList.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698