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

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

Issue 2791263005: Split MirrorsData methods and MirrorsDataImpl data by element kind. (Closed)
Patch Set: Updated cf. comments. Created 3 years, 8 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/ssa/optimize.dart ('k') | tests/compiler/dart2js/mirrors_used_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/util/emptyset.dart
diff --git a/pkg/compiler/lib/src/util/emptyset.dart b/pkg/compiler/lib/src/util/emptyset.dart
index 26474da95ef7aa49965397723f8f6c112a6d5815..809df0b624d018c5df2c3d0f5b28b17957932cd0 100644
--- a/pkg/compiler/lib/src/util/emptyset.dart
+++ b/pkg/compiler/lib/src/util/emptyset.dart
@@ -18,17 +18,17 @@ class ImmutableEmptySet<E> extends IterableBase<E> implements Set<E> {
bool add(E element) => _immutableError;
void addAll(Iterable<E> elements) => _immutableError;
- E lookup(E element) => null;
- bool remove(E element) => false;
- void removeAll(Iterable<E> elements) {}
+ E lookup(Object element) => null;
+ bool remove(Object element) => false;
+ void removeAll(Iterable<Object> elements) {}
void removeWhere(bool test(E element)) {}
- void retainAll(Iterable<E> elements) {}
+ void retainAll(Iterable<Object> elements) {}
void retainWhere(bool test(E element)) {}
void forEach(void action(E element)) {}
void clear() {}
- bool contains(E element) => false;
- bool containsAll(Iterable<E> other) => other.isEmpty;
+ bool contains(Object element) => false;
+ bool containsAll(Iterable<Object> other) => other.isEmpty;
Set<E> union(Set<E> other) => new Set.from(other);
Set<E> intersection(Set<E> other) => this;
« no previous file with comments | « pkg/compiler/lib/src/ssa/optimize.dart ('k') | tests/compiler/dart2js/mirrors_used_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698