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

Unified Diff: pkg/compiler/lib/src/util/setlet.dart

Issue 2944843002: All strong mode cleaning of dart2js. (Closed)
Patch Set: More issues discovered during testing. Created 3 years, 6 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 | « pkg/compiler/lib/src/util/maplet.dart ('k') | pkg/compiler/lib/src/world.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/util/setlet.dart
diff --git a/pkg/compiler/lib/src/util/setlet.dart b/pkg/compiler/lib/src/util/setlet.dart
index 408e46d4c9aa5a3b2d07f7418bf12a8b7090c01f..3d8da64d1a25f0fd368aa829a9cb49b469adb005 100644
--- a/pkg/compiler/lib/src/util/setlet.dart
+++ b/pkg/compiler/lib/src/util/setlet.dart
@@ -57,7 +57,7 @@ class Setlet<E> extends IterableBase<E> implements Set<E> {
}
}
- bool contains(E element) {
+ bool contains(Object element) {
if (_extra == null) {
return _contents == element;
} else if (_MARKER == _extra) {
@@ -232,7 +232,7 @@ class Setlet<E> extends IterableBase<E> implements Set<E> {
}
}
- bool containsAll(Iterable<E> other) {
+ bool containsAll(Iterable<Object> other) {
for (E e in other) {
if (!this.contains(e)) return false;
}
@@ -247,7 +247,7 @@ class Setlet<E> extends IterableBase<E> implements Set<E> {
Set<E> union(Set<E> other) => new Set<E>.from(this)..addAll(other);
- Setlet<E> intersection(Set<E> other) =>
+ Setlet<E> intersection(Set<Object> other) =>
new Setlet<E>.from(this.where((e) => other.contains(e)));
Setlet<E> difference(Set<Object> other) =>
« no previous file with comments | « pkg/compiler/lib/src/util/maplet.dart ('k') | pkg/compiler/lib/src/world.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698