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

Unified Diff: test/dart_codegen/expect/core/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/core/list.dart
diff --git a/test/dart_codegen/expect/core/list.dart b/test/dart_codegen/expect/core/list.dart
index 280a1eea01e771cf27010b10a2f81b66bc05a5b5..092570dac823adac7b3b3dd311d6c3ba49412013 100644
--- a/test/dart_codegen/expect/core/list.dart
+++ b/test/dart_codegen/expect/core/list.dart
@@ -97,10 +97,6 @@ part of dart.core;
}
bool any(bool f(E element)) => IterableMixinWorkaround.any(this, f);
bool every(bool f(E element)) => IterableMixinWorkaround.every(this, f);
- void sort([int compare(E a, E b)]) {
- checkMutable('sort');
- IterableMixinWorkaround.sortList(this, compare);
- }
bool contains(Object other) {
for (int i = 0; i < length; i++) {
if (this[i] == other) return true;
@@ -122,11 +118,11 @@ part of dart.core;
}
Set<E> toSet() => new Set<E>.from(this);
Iterator<E> get iterator => new ListIterator<E>(this);
- int get hashCode => ((__x15) => DEVC$RT.cast(__x15, dynamic, int, "DynamicCast", """line 262, column 23 of dart:core/list.dart: """, __x15 is int, true))(Primitives.objectHashCode(this));
+ int get hashCode => ((__x15) => DEVC$RT.cast(__x15, dynamic, int, "DynamicCast", """line 257, column 23 of dart:core/list.dart: """, __x15 is int, true))(Primitives.objectHashCode(this));
E operator [](int index) {
if (index is! int) throw new ArgumentError(index);
if (index >= length || index < 0) throw new RangeError.value(index);
- return ((__x16) => DEVC$RT.cast(__x16, dynamic, E, "CompositeCast", """line 273, column 12 of dart:core/list.dart: """, __x16 is E, false))(JS('var', '#[#]', this, index));
+ return ((__x16) => DEVC$RT.cast(__x16, dynamic, E, "CompositeCast", """line 268, column 12 of dart:core/list.dart: """, __x16 is E, false))(JS('var', '#[#]', this, index));
}
void operator []=(int index, E value) {
checkMutable('indexed set');
@@ -134,7 +130,7 @@ part of dart.core;
if (index >= length || index < 0) throw new RangeError.value(index);
JS('void', r'#[#] = #', this, index, value);
}
- int get length => ((__x17) => DEVC$RT.cast(__x17, dynamic, int, "DynamicCast", """line 292, column 21 of dart:core/list.dart: """, __x17 is int, true))(JS('JSUInt32', r'#.length', this));
+ int get length => ((__x17) => DEVC$RT.cast(__x17, dynamic, int, "DynamicCast", """line 287, column 21 of dart:core/list.dart: """, __x17 is int, true))(JS('JSUInt32', r'#.length', this));
void set length(int newLength) {
if (newLength is! int) throw new ArgumentError(newLength);
if (newLength < 0) throw new RangeError.value(newLength);
@@ -152,7 +148,8 @@ part of dart.core;
}
Iterable<E> get reversed => new IterableMixinWorkaround<E>().reversedList(this);
void sort([int compare(E a, E b)]) {
- IterableMixinWorkaround.sortList(this, compare);
+ checkMutable('sort');
+ IterableMixinWorkaround.sortList(this, compare);
}
void shuffle([Random random]) {
IterableMixinWorkaround.shuffleList(this, random);
@@ -198,12 +195,12 @@ part of dart.core;
throw new RangeError.value(index);
}
checkGrowable('removeAt');
- return ((__x18) => DEVC$RT.cast(__x18, dynamic, E, "CompositeCast", """line 524, column 12 of dart:core/list.dart: """, __x18 is E, false))(JS('var', r'#.splice(#, 1)[0]', this, index));
+ return ((__x18) => DEVC$RT.cast(__x18, dynamic, E, "CompositeCast", """line 519, column 12 of dart:core/list.dart: """, __x18 is E, false))(JS('var', r'#.splice(#, 1)[0]', this, index));
}
E removeLast() {
checkGrowable('removeLast');
if (length == 0) throw new RangeError.value(-1);
- return ((__x19) => DEVC$RT.cast(__x19, dynamic, E, "CompositeCast", """line 535, column 12 of dart:core/list.dart: """, __x19 is E, false))(JS('var', r'#.pop()', this));
+ return ((__x19) => DEVC$RT.cast(__x19, dynamic, E, "CompositeCast", """line 530, column 12 of dart:core/list.dart: """, __x19 is E, false))(JS('var', r'#.pop()', this));
}
void removeWhere(bool test(E element)) {
IterableMixinWorkaround.removeWhereList(this, test);

Powered by Google App Engine
This is Rietveld 408576698