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

Unified Diff: tools/dom/templates/immutable_list_mixin.darttemplate

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
Index: tools/dom/templates/immutable_list_mixin.darttemplate
diff --git a/tools/dom/templates/immutable_list_mixin.darttemplate b/tools/dom/templates/immutable_list_mixin.darttemplate
index 7f2497fd03c8e0bcb8f08473380504427662eb81..bdaaaf8ba7aa98e23e66d69c1fe236c23797edf1 100644
--- a/tools/dom/templates/immutable_list_mixin.darttemplate
+++ b/tools/dom/templates/immutable_list_mixin.darttemplate
@@ -61,16 +61,16 @@ $endif
return IterableMixinWorkaround.skipWhile(this, test);
}
- $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) {
@@ -164,11 +164,11 @@ $endif
throw new UnsupportedError("Cannot remove from immutable List.");
}
- void removeMatching(bool test($E element)) {
+ void removeWhere(bool test($E element)) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
- void retainMatching(bool test($E element)) {
+ void retainWhere(bool test($E element)) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
« no previous file with comments | « tools/dom/templates/html/impl/impl_Node.darttemplate ('k') | tools/testing/dart/vendored_pkg/args/args.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698