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

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

Issue 1048863003: Handle for-in loops (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Rebase 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/codegen/expect/server_mode/html_input.html ('k') | test/dart_codegen/expect/collection/queue.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/dart_codegen/expect/collection/hash_set.dart
diff --git a/test/dart_codegen/expect/collection/hash_set.dart b/test/dart_codegen/expect/collection/hash_set.dart
index 77031a8511ee9ff74cc0d86ca3288748f493c0f9..b9e9b03f29121836472364ba225213ebd969195f 100644
--- a/test/dart_codegen/expect/collection/hash_set.dart
+++ b/test/dart_codegen/expect/collection/hash_set.dart
@@ -2,14 +2,14 @@ part of dart.collection;
abstract class _HashSetBase<E> extends SetBase<E> {Set<E> difference(Set<Object> other) {
Set<E> result = _newSet();
for (var element in this) {
- if (!other.contains(element)) result.add(DEVC$RT.cast(element, dynamic, E, "CompositeCast", """line 17, column 48 of dart:collection/hash_set.dart: """, element is E, false));
+ if (!other.contains(element)) result.add(element);
}
return result;
}
Set<E> intersection(Set<Object> other) {
Set<E> result = _newSet();
for (var element in this) {
- if (other.contains(element)) result.add(DEVC$RT.cast(element, dynamic, E, "CompositeCast", """line 25, column 47 of dart:collection/hash_set.dart: """, element is E, false));
+ if (other.contains(element)) result.add(element);
}
return result;
}
@@ -22,7 +22,11 @@ bool equals(E e1, E e2), int hashCode(E e), bool isValidKey(potentialKey)}
external factory HashSet.identity();
factory HashSet.from(Iterable elements) {
HashSet<E> result = new HashSet<E>();
- for (E e in elements) result.add(e);
+ for (E e in DEVC$RT.cast(elements, DEVC$RT.type((Iterable<dynamic> _) {
+ }
+), DEVC$RT.type((Iterable<E> _) {
+ }
+), "CompositeCast", """line 103, column 17 of dart:collection/hash_set.dart: """, elements is Iterable<E>, false)) result.add(e);
return result;
}
Iterator<E> get iterator;
« no previous file with comments | « test/codegen/expect/server_mode/html_input.html ('k') | test/dart_codegen/expect/collection/queue.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698