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

Unified Diff: test/dart_codegen/expect/collection/list.dart

Issue 1112403004: SDK fixes (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Formatting fix Created 5 years, 8 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: 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 68afd22ce06536aa295a842d694ddfc98671eba3..0b1099904bd9aed3ba2c0a8a79715673d1d5bd7b 100644
--- a/test/dart_codegen/expect/collection/list.dart
+++ b/test/dart_codegen/expect/collection/list.dart
@@ -219,11 +219,7 @@ if (length == 0) {
return result;
}
void sort([int compare(E a, E b)]) {
-if (compare == null) {
- var defaultCompare = Comparable.compare;
- compare = defaultCompare;
- }
- Sort.sort(this, compare);
+Sort.sort(this, ((__x8) => DEVC$RT.cast(__x8, dynamic, __CastType5, "CompositeCast", """line 305, column 21 of dart:collection/list.dart: """, __x8 is __CastType5, false))(compare == null ? Comparable.compare : compare));
}
void shuffle([Random random]) {
if (random == null) random = new Random();
@@ -277,7 +273,7 @@ RangeError.checkValidRange(start, end, this.length);
}
), DEVC$RT.type((List<dynamic> _) {
}
- ), "ImplicitCast", """line 369, column 19 of dart:collection/list.dart: """, iterable is List<dynamic>, true);
+ ), "ImplicitCast", """line 365, column 19 of dart:collection/list.dart: """, iterable is List<dynamic>, true);
otherStart = skipCount;
}
else {
@@ -289,12 +285,12 @@ RangeError.checkValidRange(start, end, this.length);
}
if (otherStart < start) {
for (int i = length - 1; i >= 0; i--) {
- this[start + i] = ((__x5) => DEVC$RT.cast(__x5, dynamic, E, "CompositeCast", """line 381, column 27 of dart:collection/list.dart: """, __x5 is E, false))(otherList[otherStart + i]);
+ this[start + i] = ((__x9) => DEVC$RT.cast(__x9, dynamic, E, "CompositeCast", """line 377, column 27 of dart:collection/list.dart: """, __x9 is E, false))(otherList[otherStart + i]);
}
}
else {
for (int i = 0; i < length; i++) {
- this[start + i] = ((__x6) => DEVC$RT.cast(__x6, dynamic, E, "CompositeCast", """line 385, column 27 of dart:collection/list.dart: """, __x6 is E, false))(otherList[otherStart + i]);
+ this[start + i] = ((__x10) => DEVC$RT.cast(__x10, dynamic, E, "CompositeCast", """line 381, column 27 of dart:collection/list.dart: """, __x10 is E, false))(otherList[otherStart + i]);
}
}
}
@@ -396,3 +392,4 @@ if (iterable is List) {
Iterable<E> get reversed => new ReversedListIterable<E>(this);
String toString() => IterableBase.iterableToFullString(this, '[', ']');
}
+ typedef int __CastType5(dynamic __u6, dynamic __u7);

Powered by Google App Engine
This is Rietveld 408576698