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

Unified Diff: runtime/lib/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 | « pkg/unittest/lib/unittest.dart ('k') | runtime/lib/byte_array.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/array.dart
diff --git a/runtime/lib/array.dart b/runtime/lib/array.dart
index eb7bc70760ff48b847726524943831e8409efbb8..bcbcc55deae7f3d4d24f8f334d2150e2b3ac2154 100644
--- a/runtime/lib/array.dart
+++ b/runtime/lib/array.dart
@@ -45,12 +45,12 @@ class _ObjectArray<E> implements List<E> {
"Cannot remove element of a non-extendable array");
}
- void removeMatching(bool test(E element)) {
+ void removeWhere(bool test(E element)) {
throw new UnsupportedError(
"Cannot remove element of a non-extendable array");
}
- void retainMatching(bool test(E element)) {
+ void retainWhere(bool test(E element)) {
throw new UnsupportedError(
"Cannot remove element of a non-extendable array");
}
@@ -140,16 +140,16 @@ class _ObjectArray<E> implements List<E> {
return IterableMixinWorkaround.any(this, f);
}
- E firstMatching(bool test(E value), {E orElse()}) {
- return IterableMixinWorkaround.firstMatching(this, test, orElse);
+ E firstWhere(bool test(E value), {E orElse()}) {
+ return IterableMixinWorkaround.firstWhere(this, test, orElse);
}
- E lastMatching(bool test(E value), {E orElse()}) {
- return IterableMixinWorkaround.lastMatchingInList(this, test, orElse);
+ E lastWhere(bool test(E value), {E orElse()}) {
+ return IterableMixinWorkaround.lastWhereList(this, test, orElse);
}
- E singleMatching(bool test(E value)) {
- return IterableMixinWorkaround.singleMatching(this, test);
+ E singleWhere(bool test(E value)) {
+ return IterableMixinWorkaround.singleWhere(this, test);
}
E elementAt(int index) {
@@ -285,12 +285,12 @@ class _ImmutableArray<E> implements List<E> {
"Cannot modify an immutable array");
}
- void removeMatching(bool test(E element)) {
+ void removeWhere(bool test(E element)) {
throw new UnsupportedError(
"Cannot modify an immutable array");
}
- void retainMatching(bool test(E element)) {
+ void retainWhere(bool test(E element)) {
throw new UnsupportedError(
"Cannot modify an immutable array");
}
@@ -378,16 +378,16 @@ class _ImmutableArray<E> implements List<E> {
return IterableMixinWorkaround.any(this, f);
}
- E firstMatching(bool test(E value), {E orElse()}) {
- return IterableMixinWorkaround.firstMatching(this, test, orElse);
+ E firstWhere(bool test(E value), {E orElse()}) {
+ return IterableMixinWorkaround.firstWhere(this, test, orElse);
}
- E lastMatching(bool test(E value), {E orElse()}) {
- return IterableMixinWorkaround.lastMatchingInList(this, test, orElse);
+ E lastWhere(bool test(E value), {E orElse()}) {
+ return IterableMixinWorkaround.lastWhereList(this, test, orElse);
}
- E singleMatching(bool test(E value)) {
- return IterableMixinWorkaround.singleMatching(this, test);
+ E singleWhere(bool test(E value)) {
+ return IterableMixinWorkaround.singleWhere(this, test);
}
E elementAt(int index) {
« no previous file with comments | « pkg/unittest/lib/unittest.dart ('k') | runtime/lib/byte_array.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698