| Index: test/dart_codegen/expect/collection/iterable.dart
|
| diff --git a/test/dart_codegen/expect/collection/iterable.dart b/test/dart_codegen/expect/collection/iterable.dart
|
| index 4649f59f0c58147303fc44bdcc0b3f6d50388f3d..1f097416575e533c8ebad74cf82213747c6f216a 100644
|
| --- a/test/dart_codegen/expect/collection/iterable.dart
|
| +++ b/test/dart_codegen/expect/collection/iterable.dart
|
| @@ -120,7 +120,7 @@ part of dart.collection;
|
| E lastWhere(bool test(E value), {
|
| E orElse()}
|
| ) {
|
| - E result = ((__x0) => DDC$RT.cast(__x0, Null, E, "CastLiteral", """line 159, column 16 of dart:collection/iterable.dart: """, __x0 is E, false))(null);
|
| + E result = null;
|
| bool foundMatching = false;
|
| for (E element in this) {
|
| if (test(element)) {
|
| @@ -133,7 +133,7 @@ part of dart.collection;
|
| throw IterableElementError.noElement();
|
| }
|
| E singleWhere(bool test(E value)) {
|
| - E result = ((__x1) => DDC$RT.cast(__x1, Null, E, "CastLiteral", """line 173, column 16 of dart:collection/iterable.dart: """, __x1 is E, false))(null);
|
| + E result = null;
|
| bool foundMatching = false;
|
| for (E element in this) {
|
| if (test(element)) {
|
| @@ -281,7 +281,7 @@ for (E element in this) {
|
| E lastWhere(bool test(E value), {
|
| E orElse()}
|
| ) {
|
| -E result = ((__x2) => DDC$RT.cast(__x2, Null, E, "CastLiteral", """line 355, column 16 of dart:collection/iterable.dart: """, __x2 is E, false))(null);
|
| +E result = null;
|
| bool foundMatching = false;
|
| for (E element in this) {
|
| if (test(element)) {
|
| @@ -294,7 +294,7 @@ E result = ((__x2) => DDC$RT.cast(__x2, Null, E, "CastLiteral", """line 355, col
|
| throw IterableElementError.noElement();
|
| }
|
| E singleWhere(bool test(E value)) {
|
| -E result = ((__x3) => DDC$RT.cast(__x3, Null, E, "CastLiteral", """line 369, column 16 of dart:collection/iterable.dart: """, __x3 is E, false))(null);
|
| +E result = null;
|
| bool foundMatching = false;
|
| for (E element in this) {
|
| if (test(element)) {
|
| @@ -379,8 +379,8 @@ const int LENGTH_LIMIT = 80;
|
| var penultimate = null;
|
| var ultimate = null;
|
| if (!it.moveNext()) {
|
| - if (count <= HEAD_COUNT + TAIL_COUNT) return; ultimateString = ((__x4) => DDC$RT.cast(__x4, dynamic, String, "CastGeneral", """line 530, column 24 of dart:collection/iterable.dart: """, __x4 is String, true))(parts.removeLast());
|
| - penultimateString = ((__x5) => DDC$RT.cast(__x5, dynamic, String, "CastGeneral", """line 531, column 27 of dart:collection/iterable.dart: """, __x5 is String, true))(parts.removeLast());
|
| + if (count <= HEAD_COUNT + TAIL_COUNT) return; ultimateString = ((__x0) => DDC$RT.cast(__x0, dynamic, String, "CastGeneral", """line 530, column 24 of dart:collection/iterable.dart: """, __x0 is String, true))(parts.removeLast());
|
| + penultimateString = ((__x1) => DDC$RT.cast(__x1, dynamic, String, "CastGeneral", """line 531, column 27 of dart:collection/iterable.dart: """, __x1 is String, true))(parts.removeLast());
|
| }
|
| else {
|
| penultimate = it.current;
|
| @@ -390,7 +390,7 @@ const int LENGTH_LIMIT = 80;
|
| parts.add("$penultimate");
|
| return;}
|
| ultimateString = "$penultimate";
|
| - penultimateString = ((__x6) => DDC$RT.cast(__x6, dynamic, String, "CastGeneral", """line 541, column 29 of dart:collection/iterable.dart: """, __x6 is String, true))(parts.removeLast());
|
| + penultimateString = ((__x2) => DDC$RT.cast(__x2, dynamic, String, "CastGeneral", """line 541, column 29 of dart:collection/iterable.dart: """, __x2 is String, true))(parts.removeLast());
|
| length += ultimateString.length + OVERHEAD;
|
| }
|
| else {
|
| @@ -402,7 +402,7 @@ const int LENGTH_LIMIT = 80;
|
| count++;
|
| if (count > MAX_COUNT) {
|
| while (length > LENGTH_LIMIT - ELLIPSIS_SIZE - OVERHEAD && count > HEAD_COUNT) {
|
| - length -= ((__x7) => DDC$RT.cast(__x7, dynamic, int, "CastGeneral", """line 562, column 25 of dart:collection/iterable.dart: """, __x7 is int, true))(parts.removeLast().length + OVERHEAD);
|
| + length -= ((__x3) => DDC$RT.cast(__x3, dynamic, int, "CastGeneral", """line 562, column 25 of dart:collection/iterable.dart: """, __x3 is int, true))(parts.removeLast().length + OVERHEAD);
|
| count--;
|
| }
|
| parts.add("...");
|
| @@ -419,7 +419,7 @@ const int LENGTH_LIMIT = 80;
|
| length += ELLIPSIS_SIZE + OVERHEAD;
|
| }
|
| while (length > LENGTH_LIMIT && parts.length > HEAD_COUNT) {
|
| - length -= ((__x8) => DDC$RT.cast(__x8, dynamic, int, "CastGeneral", """line 588, column 17 of dart:collection/iterable.dart: """, __x8 is int, true))(parts.removeLast().length + OVERHEAD);
|
| + length -= ((__x4) => DDC$RT.cast(__x4, dynamic, int, "CastGeneral", """line 588, column 17 of dart:collection/iterable.dart: """, __x4 is int, true))(parts.removeLast().length + OVERHEAD);
|
| if (elision == null) {
|
| elision = "...";
|
| length += ELLIPSIS_SIZE + OVERHEAD;
|
|
|