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

Unified Diff: runtime/lib/byte_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/array.dart ('k') | runtime/lib/growable_array.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/byte_array.dart
diff --git a/runtime/lib/byte_array.dart b/runtime/lib/byte_array.dart
index 2323fdff747338746a5a18fead09ad6f88b9deaf..2877cd57196d44168c82dd6d7b0254d801087619 100644
--- a/runtime/lib/byte_array.dart
+++ b/runtime/lib/byte_array.dart
@@ -274,16 +274,16 @@ abstract class _ByteArrayBase {
return IterableMixinWorkaround.any(this, f);
}
- int firstMatching(bool test(int value), {int orElse()}) {
- return IterableMixinWorkaround.firstMatching(this, test, orElse);
+ int firstWhere(bool test(int value), {int orElse()}) {
+ return IterableMixinWorkaround.firstWhere(this, test, orElse);
}
- int lastMatching(bool test(int value), {int orElse()}) {
- return IterableMixinWorkaround.lastMatchingInList(this, test, orElse);
+ int lastWhere(bool test(int value), {int orElse()}) {
+ return IterableMixinWorkaround.lastWhereList(this, test, orElse);
}
- int singleMatching(bool test(int value)) {
- return IterableMixinWorkaround.singleMatching(this, test);
+ int singleWhere(bool test(int value)) {
+ return IterableMixinWorkaround.singleWhere(this, test);
}
int elementAt(int index) {
@@ -357,12 +357,12 @@ abstract class _ByteArrayBase {
"Cannot remove from a non-extendable array");
}
- void removeMatching(bool test(int element)) {
+ void removeWhere(bool test(int element)) {
throw new UnsupportedError(
"Cannot remove from a non-extendable array");
}
- void retainMatching(bool test(int element)) {
+ void retainWhere(bool test(int element)) {
throw new UnsupportedError(
"Cannot remove from a non-extendable array");
}
@@ -2030,12 +2030,12 @@ class _ByteArrayViewBase extends Collection<int> {
"Cannot remove from a non-extendable array");
}
- void removeMatching(bool test(int element)) {
+ void removeWhere(bool test(int element)) {
throw new UnsupportedError(
"Cannot remove from a non-extendable array");
}
- void retainMatching(bool test(int element)) {
+ void retainWhere(bool test(int element)) {
throw new UnsupportedError(
"Cannot remove from a non-extendable array");
}
« no previous file with comments | « runtime/lib/array.dart ('k') | runtime/lib/growable_array.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698