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

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

Issue 1048863003: Handle for-in loops (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 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/queue.dart
diff --git a/test/dart_codegen/expect/collection/queue.dart b/test/dart_codegen/expect/collection/queue.dart
index 88305462dc84760112afcb072c45f0e63cec7b41..0a652b2b23f2c662ba041dd4de015b69a293d74e 100644
--- a/test/dart_codegen/expect/collection/queue.dart
+++ b/test/dart_codegen/expect/collection/queue.dart
@@ -77,7 +77,11 @@ Queue<E> list = ((__x17) => DEVC$RT.cast(__x17, DEVC$RT.type((DoubleLinkedQueue<
), DEVC$RT.type((Queue<E> _) {
}
), "InferableAllocation", """line 207, column 21 of dart:collection/queue.dart: """, __x17 is Queue<E>, false))(new DoubleLinkedQueue());
- for (final E e in elements) {
+ for (final E e in DEVC$RT.cast(elements, DEVC$RT.type((Iterable<dynamic> _) {
+}
+), DEVC$RT.type((Iterable<E> _) {
+}
+), "CompositeCast", """line 208, column 23 of dart:collection/queue.dart: """, elements is Iterable<E>, false)) {
list.addLast(e);
}
return DEVC$RT.cast(list, DEVC$RT.type((Queue<E> _) {
@@ -236,7 +240,11 @@ int capacity = _INITIAL_CAPACITY;
capacity = elements.length;
}
ListQueue<E> result = new ListQueue<E>(capacity);
- for (final E element in elements) {
+ for (final E element in DEVC$RT.cast(elements, DEVC$RT.type((Iterable<dynamic> _) {
+}
+), DEVC$RT.type((Iterable<E> _) {
+}
+), "CompositeCast", """line 411, column 31 of dart:collection/queue.dart: """, elements is Iterable<E>, false)) {
result.addLast(element);
}
return result;

Powered by Google App Engine
This is Rietveld 408576698