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

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

Issue 693183006: Revert "Move dart2js from sdk/lib/_internal/compiler to pkg/compiler" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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/command_line.dart ('k') | pkg/compiler/lib/src/util/indentation.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
deleted file mode 100644
index d70376f470bcb42c1488ef39cdf7ab57ce0b49ef..0000000000000000000000000000000000000000
--- a/pkg/compiler/lib/src/util/emptyset.dart
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-library dart2js.util.emptyset;
-
-import 'dart:collection' show IterableBase;
-
-class ImmutableEmptySet<E> extends IterableBase<E> implements Set<E> {
- const ImmutableEmptySet();
-
- get iterator => const _EmptySetIterator();
- int get length => 0;
- bool get isEmpty => true;
-
- get _immutableError => throw new UnsupportedError("EmptySet is immutable");
-
- 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) {}
- void removeWhere(bool test(E element)) {}
- void retainAll(Iterable<E> 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;
-
- Set<E> union(Set<E> other) => new Set.from(other);
- Set<E> intersection(Set<E> other) => this;
- Set<E> difference(Set<E> other) => this;
- Set<E> toSet() => new Set();
-}
-
-class _EmptySetIterator<E> implements Iterator<E> {
- const _EmptySetIterator();
-
- E get current => null;
- bool moveNext() => false;
-}
« no previous file with comments | « pkg/compiler/lib/src/util/command_line.dart ('k') | pkg/compiler/lib/src/util/indentation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698