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

Unified Diff: runtime/lib/growable_array.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 | « runtime/lib/byte_array.dart ('k') | runtime/lib/typeddata.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/growable_array.dart
diff --git a/runtime/lib/growable_array.dart b/runtime/lib/growable_array.dart
index 2d8a6c7c1b1a5c529ce6efe3a1193a97c65b7d9e..acad103af67063125985f446e2566c1402180b45 100644
--- a/runtime/lib/growable_array.dart
+++ b/runtime/lib/growable_array.dart
@@ -38,13 +38,13 @@ class _GrowableObjectArray<T> implements List<T> {
IterableMixinWorkaround.retainAll(this, elements);
}
- void removeMatching(bool test(T element)) {
- IterableMixinWorkaround.removeMatchingList(this, test);
+ void removeWhere(bool test(T element)) {
+ IterableMixinWorkaround.removeWhereList(this, test);
}
- void retainMatching(bool test(T element)) {
- IterableMixinWorkaround.removeMatchingList(this,
- (T element) => !test(element));
+ void retainWhere(bool test(T element)) {
+ IterableMixinWorkaround.removeWhereList(this,
+ (T element) => !test(element));
}
void setRange(int start, int length, List<T> from, [int startFrom = 0]) {
@@ -278,16 +278,16 @@ class _GrowableObjectArray<T> implements List<T> {
return IterableMixinWorkaround.any(this, f);
}
- T firstMatching(bool test(T value), {T orElse()}) {
- return IterableMixinWorkaround.firstMatching(this, test, orElse);
+ T firstWhere(bool test(T value), {T orElse()}) {
+ return IterableMixinWorkaround.firstWhere(this, test, orElse);
}
- T lastMatching(bool test(T value), {T orElse()}) {
- return IterableMixinWorkaround.lastMatchingInList(this, test, orElse);
+ T lastWhere(bool test(T value), {T orElse()}) {
+ return IterableMixinWorkaround.lastWhereList(this, test, orElse);
}
- T singleMatching(bool test(T value)) {
- return IterableMixinWorkaround.singleMatching(this, test);
+ T singleWhere(bool test(T value)) {
+ return IterableMixinWorkaround.singleWhere(this, test);
}
T elementAt(int index) {
« no previous file with comments | « runtime/lib/byte_array.dart ('k') | runtime/lib/typeddata.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698