| 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.");
|
| }
|
|
|
|
|