| Index: test/dart_codegen/expect/collection/list.dart
|
| diff --git a/test/dart_codegen/expect/collection/list.dart b/test/dart_codegen/expect/collection/list.dart
|
| index b9a11a4963bab8005efee2b34c3c41599f66b837..d1b203614c7444b15c12170ab262f1e4e9d4a350 100644
|
| --- a/test/dart_codegen/expect/collection/list.dart
|
| +++ b/test/dart_codegen/expect/collection/list.dart
|
| @@ -87,7 +87,7 @@ int length = this.length;
|
| }
|
| E singleWhere(bool test(E element)) {
|
| int length = this.length;
|
| - E match = ((__x9) => DDC$RT.cast(__x9, Null, E, "CastLiteral", """line 151, column 15 of dart:collection/list.dart: """, __x9 is E, false))(null);
|
| + E match = null;
|
| bool matchFound = false;
|
| for (int i = 0; i < length; i++) {
|
| E element = this[i];
|
| @@ -111,13 +111,13 @@ if (length == 0) return "";
|
| return buffer.toString();
|
| }
|
| Iterable<E> where(bool test(E element)) => new WhereIterable<E>(this, test);
|
| - Iterable map(f(E element)) => new MappedListIterable(this, DDC$RT.wrap((dynamic f(E __u10)) {
|
| + Iterable map(f(E element)) => new MappedListIterable(this, DDC$RT.wrap((dynamic f(E __u5)) {
|
| dynamic c(E x0) => f(DDC$RT.cast(x0, dynamic, E, "CastParam", """line 178, column 62 of dart:collection/list.dart: """, x0 is E, false));
|
| return f == null ? null : c;
|
| }
|
| -, f, DDC$RT.type((__t13<E> _) {
|
| +, f, DDC$RT.type((__t8<E> _) {
|
| }
|
| -), __t11, "Wrap", """line 178, column 62 of dart:collection/list.dart: """, f is __t11));
|
| +), __t6, "Wrap", """line 178, column 62 of dart:collection/list.dart: """, f is __t6));
|
| Iterable expand(Iterable f(E element)) => new ExpandIterable<E, dynamic>(this, f);
|
| E reduce(E combine(E previousValue, E element)) {
|
| int length = this.length;
|
| @@ -142,7 +142,7 @@ var value = initialValue;
|
| }
|
| return value;
|
| }
|
| - Iterable<E> skip(int count) => new SubListIterable<E>(this, count, ((__x15) => DDC$RT.cast(__x15, Null, int, "CastLiteral", """line 208, column 70 of dart:collection/list.dart: """, __x15 is int, true))(null));
|
| + Iterable<E> skip(int count) => new SubListIterable<E>(this, count, null);
|
| Iterable<E> skipWhile(bool test(E element)) {
|
| return new SkipWhileIterable<E>(this, test);
|
| }
|
| @@ -191,22 +191,22 @@ for (int i = 0; i < this.length; i++) {
|
| return false;
|
| }
|
| void removeWhere(bool test(E element)) {
|
| -_filter(this, DDC$RT.wrap((bool f(E __u16)) {
|
| +_filter(this, DDC$RT.wrap((bool f(E __u10)) {
|
| bool c(E x0) => f(DDC$RT.cast(x0, dynamic, E, "CastParam", """line 264, column 19 of dart:collection/list.dart: """, x0 is E, false));
|
| return f == null ? null : c;
|
| }
|
| -, test, DDC$RT.type((__t19<E> _) {
|
| +, test, DDC$RT.type((__t13<E> _) {
|
| }
|
| -), __t17, "Wrap", """line 264, column 19 of dart:collection/list.dart: """, test is __t17), false);
|
| +), __t11, "Wrap", """line 264, column 19 of dart:collection/list.dart: """, test is __t11), false);
|
| }
|
| void retainWhere(bool test(E element)) {
|
| -_filter(this, DDC$RT.wrap((bool f(E __u21)) {
|
| +_filter(this, DDC$RT.wrap((bool f(E __u15)) {
|
| bool c(E x0) => f(DDC$RT.cast(x0, dynamic, E, "CastParam", """line 268, column 19 of dart:collection/list.dart: """, x0 is E, false));
|
| return f == null ? null : c;
|
| }
|
| -, test, DDC$RT.type((__t19<E> _) {
|
| +, test, DDC$RT.type((__t13<E> _) {
|
| }
|
| -), __t17, "Wrap", """line 268, column 19 of dart:collection/list.dart: """, test is __t17), true);
|
| +), __t11, "Wrap", """line 268, column 19 of dart:collection/list.dart: """, test is __t11), true);
|
| }
|
| static void _filter(List source, bool test(var element), bool retainMatching) {
|
| List retained = [];
|
| @@ -241,13 +241,13 @@ if (compare == null) {
|
| var defaultCompare = Comparable.compare;
|
| compare = defaultCompare;
|
| }
|
| - Sort.sort(this, DDC$RT.wrap((int f(E __u22, E __u23)) {
|
| + Sort.sort(this, DDC$RT.wrap((int f(E __u16, E __u17)) {
|
| int c(E x0, E x1) => f(DDC$RT.cast(x0, dynamic, E, "CastParam", """line 309, column 21 of dart:collection/list.dart: """, x0 is E, false), DDC$RT.cast(x1, dynamic, E, "CastParam", """line 309, column 21 of dart:collection/list.dart: """, x1 is E, false));
|
| return f == null ? null : c;
|
| }
|
| -, compare, DDC$RT.type((__t27<E> _) {
|
| +, compare, DDC$RT.type((__t21<E> _) {
|
| }
|
| -), __t24, "Wrap", """line 309, column 21 of dart:collection/list.dart: """, compare is __t24));
|
| +), __t18, "Wrap", """line 309, column 21 of dart:collection/list.dart: """, compare is __t18));
|
| }
|
| void shuffle([Random random]) {
|
| if (random == null) random = new Random();
|
| @@ -313,12 +313,12 @@ RangeError.checkValidRange(start, end, this.length);
|
| }
|
| if (otherStart < start) {
|
| for (int i = length - 1; i >= 0; i--) {
|
| - this[start + i] = ((__x30) => DDC$RT.cast(__x30, dynamic, E, "CastGeneral", """line 381, column 27 of dart:collection/list.dart: """, __x30 is E, false))(otherList[otherStart + i]);
|
| + this[start + i] = ((__x24) => DDC$RT.cast(__x24, dynamic, E, "CastGeneral", """line 381, column 27 of dart:collection/list.dart: """, __x24 is E, false))(otherList[otherStart + i]);
|
| }
|
| }
|
| else {
|
| for (int i = 0; i < length; i++) {
|
| - this[start + i] = ((__x31) => DDC$RT.cast(__x31, dynamic, E, "CastGeneral", """line 385, column 27 of dart:collection/list.dart: """, __x31 is E, false))(otherList[otherStart + i]);
|
| + this[start + i] = ((__x25) => DDC$RT.cast(__x25, dynamic, E, "CastGeneral", """line 385, column 27 of dart:collection/list.dart: """, __x25 is E, false))(otherList[otherStart + i]);
|
| }
|
| }
|
| }
|
| @@ -420,9 +420,9 @@ if (iterable is List) {
|
| Iterable<E> get reversed => new ReversedListIterable<E>(this);
|
| String toString() => IterableBase.iterableToFullString(this, '[', ']');
|
| }
|
| - typedef dynamic __t11(dynamic __u12);
|
| - typedef dynamic __t13<E>(E __u14);
|
| - typedef bool __t17(dynamic __u18);
|
| - typedef bool __t19<E>(E __u20);
|
| - typedef int __t24(dynamic __u25, dynamic __u26);
|
| - typedef int __t27<E>(E __u28, E __u29);
|
| + typedef dynamic __t6(dynamic __u7);
|
| + typedef dynamic __t8<E>(E __u9);
|
| + typedef bool __t11(dynamic __u12);
|
| + typedef bool __t13<E>(E __u14);
|
| + typedef int __t18(dynamic __u19, dynamic __u20);
|
| + typedef int __t21<E>(E __u22, E __u23);
|
|
|