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

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

Issue 1131143002: Angular workarounds (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Rebase onto latest Created 5 years, 7 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
« no previous file with comments | « test/codegen/expect/sunflower/sunflower.html ('k') | test/dart_codegen/expect/core/stopwatch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 864283e8e23fe5f443c648aa462fafe696928f17..72e14edb398470b10e5573165c93d9cfc27c3a78 100644
--- a/test/dart_codegen/expect/core/list.dart
+++ b/test/dart_codegen/expect/core/list.dart
@@ -109,20 +109,17 @@ part of dart.core;
List<E> toList({
bool growable : true}
) {
- if (growable) {
- return new JSArray<E>.markGrowable(JS('', '#.slice()', this));
- }
- else {
- return new JSArray<E>.markFixed(JS('', '#.slice()', this));
+ return ((__x14) => DEVC$RT.cast(__x14, dynamic, DEVC$RT.type((List<E> _) {
}
+ ), "CompositeCast", """line 248, column 12 of dart:core/list.dart: """, __x14 is List<E>, false))(JS('', 'dart.setType(#.slice(), core.List\$(#))', this, E));
}
Set<E> toSet() => new Set<E>.from(this);
Iterator<E> get iterator => new ListIterator<E>(this);
- int get hashCode => ((__x14) => DEVC$RT.cast(__x14, dynamic, int, "DynamicCast", """line 257, column 23 of dart:core/list.dart: """, __x14 is int, true))(Primitives.objectHashCode(this));
+ int get hashCode => ((__x15) => DEVC$RT.cast(__x15, dynamic, int, "DynamicCast", """line 255, 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 ((__x15) => DEVC$RT.cast(__x15, dynamic, E, "CompositeCast", """line 268, column 12 of dart:core/list.dart: """, __x15 is E, false))(JS('var', '#[#]', this, index));
+ return ((__x16) => DEVC$RT.cast(__x16, dynamic, E, "CompositeCast", """line 266, column 12 of dart:core/list.dart: """, __x16 is E, false))(JS('var', '#[#]', this, index));
}
void operator []=(int index, E value) {
checkMutable('indexed set');
@@ -130,7 +127,7 @@ part of dart.core;
if (index >= length || index < 0) throw new RangeError.value(index);
JS('void', r'#[#] = #', this, index, value);
}
- int get length => ((__x16) => DEVC$RT.cast(__x16, dynamic, int, "DynamicCast", """line 287, column 21 of dart:core/list.dart: """, __x16 is int, true))(JS('JSUInt32', r'#.length', this));
+ int get length => ((__x17) => DEVC$RT.cast(__x17, dynamic, int, "DynamicCast", """line 285, 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);
@@ -195,12 +192,12 @@ part of dart.core;
throw new RangeError.value(index);
}
checkGrowable('removeAt');
- return ((__x17) => DEVC$RT.cast(__x17, dynamic, E, "CompositeCast", """line 519, column 12 of dart:core/list.dart: """, __x17 is E, false))(JS('var', r'#.splice(#, 1)[0]', this, index));
+ return ((__x18) => DEVC$RT.cast(__x18, dynamic, E, "CompositeCast", """line 517, 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 ((__x18) => DEVC$RT.cast(__x18, dynamic, E, "CompositeCast", """line 530, column 12 of dart:core/list.dart: """, __x18 is E, false))(JS('var', r'#.pop()', this));
+ return ((__x19) => DEVC$RT.cast(__x19, dynamic, E, "CompositeCast", """line 528, 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);
« no previous file with comments | « test/codegen/expect/sunflower/sunflower.html ('k') | test/dart_codegen/expect/core/stopwatch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698