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

Unified Diff: samples/swarm/swarm_ui_lib/observable/observable.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/typeddata.dart ('k') | sdk/lib/_collection_dev/iterable.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/swarm/swarm_ui_lib/observable/observable.dart
diff --git a/samples/swarm/swarm_ui_lib/observable/observable.dart b/samples/swarm/swarm_ui_lib/observable/observable.dart
index e60b8a92ee23585f7eca59833ebcd1a5cb3f3c35..85c2ae6afd79bf2b02b81706c3aaf53416838957 100644
--- a/samples/swarm/swarm_ui_lib/observable/observable.dart
+++ b/samples/swarm/swarm_ui_lib/observable/observable.dart
@@ -294,14 +294,14 @@ class ObservableList<T>
bool any(bool f(T element)) => _internal.any(f);
void forEach(void f(T element)) { _internal.forEach(f); }
String join([String separator]) => _internal.join(separator);
- T firstMatching(bool test(T value), {T orElse()}) {
- return _internal.firstMatching(test, orElse: orElse);
+ T firstWhere(bool test(T value), {T orElse()}) {
+ return _internal.firstWhere(test, orElse: orElse);
}
- T lastMatching(bool test(T value), {T orElse()}) {
- return _internal.lastMatching(test, orElse: orElse);
+ T lastWhere(bool test(T value), {T orElse()}) {
+ return _internal.lastWhere(test, orElse: orElse);
}
- T singleMatching(bool test(T value)) {
- return _internal.singleMatching(test);
+ T singleWhere(bool test(T value)) {
+ return _internal.singleWhere(test);
}
T elementAt(int index) {
return _internal.elementAt(index);
« no previous file with comments | « runtime/lib/typeddata.dart ('k') | sdk/lib/_collection_dev/iterable.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698