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

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

Issue 1038213003: Downward inference (Closed) Base URL: git@github.com:dart-lang/dart-dev-compiler.git@master
Patch Set: Implement named arguments, some fixes 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
« no previous file with comments | « test/dart_codegen/expect/async/zone.dart ('k') | test/dart_codegen/expect/collection/splay_tree.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..bb4f81830968d28eb096c1514d56793b3a35464f 100644
--- a/test/dart_codegen/expect/collection/queue.dart
+++ b/test/dart_codegen/expect/collection/queue.dart
@@ -72,11 +72,7 @@ throw IterableElementError.noElement();
_sentinel = new _DoubleLinkedQueueEntrySentinel<E>();
}
factory DoubleLinkedQueue.from(Iterable elements) {
-Queue<E> list = ((__x17) => DEVC$RT.cast(__x17, DEVC$RT.type((DoubleLinkedQueue<dynamic> _) {
-}
-), DEVC$RT.type((Queue<E> _) {
-}
-), "InferableAllocation", """line 207, column 21 of dart:collection/queue.dart: """, __x17 is Queue<E>, false))(new DoubleLinkedQueue());
+Queue<E> list = new DoubleLinkedQueue<E>();
for (final E e in elements) {
list.addLast(e);
}
@@ -216,11 +212,11 @@ initialCapacity = _nextPowerOf2(initialCapacity);
factory ListQueue.from(Iterable elements) {
if (elements is List) {
int length = elements.length;
- ListQueue<E> queue = ((__x18) => DEVC$RT.cast(__x18, DEVC$RT.type((ListQueue<dynamic> _) {
+ ListQueue<E> queue = ((__x17) => DEVC$RT.cast(__x17, DEVC$RT.type((ListQueue<dynamic> _) {
}
), DEVC$RT.type((ListQueue<E> _) {
}
-), "InferableAllocation", """line 399, column 28 of dart:collection/queue.dart: """, __x18 is ListQueue<E>, false))(new ListQueue(length + 1));
+), "InferableAllocation", """line 399, column 28 of dart:collection/queue.dart: """, __x17 is ListQueue<E>, false))(new ListQueue(length + 1));
assert (queue._table.length > length); List sourceList = elements;
queue._table.setRange(0, length, DEVC$RT.cast(sourceList, DEVC$RT.type((List<dynamic> _) {
}
@@ -494,7 +490,7 @@ _queue._checkModification(_modificationCount);
_current = null;
return false;
}
- _current = ((__x19) => DEVC$RT.cast(__x19, dynamic, E, "CompositeCast", """line 738, column 16 of dart:collection/queue.dart: """, __x19 is E, false))(_queue._table[_position]);
+ _current = ((__x18) => DEVC$RT.cast(__x18, dynamic, E, "CompositeCast", """line 738, column 16 of dart:collection/queue.dart: """, __x18 is E, false))(_queue._table[_position]);
_position = (_position + 1) & (_queue._table.length - 1);
return true;
}
« no previous file with comments | « test/dart_codegen/expect/async/zone.dart ('k') | test/dart_codegen/expect/collection/splay_tree.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698