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

Unified Diff: pkg/analyzer/lib/src/generated/utilities_collection.dart

Issue 770333003: First step to resolving simple API changes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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
Index: pkg/analyzer/lib/src/generated/utilities_collection.dart
diff --git a/pkg/analyzer/lib/src/generated/utilities_collection.dart b/pkg/analyzer/lib/src/generated/utilities_collection.dart
index 47dd4f61d46e47033baa2fed7cefb8604f64fa94..22012ff3e15b0db5395d9a3834b45bfa525c2784 100644
--- a/pkg/analyzer/lib/src/generated/utilities_collection.dart
+++ b/pkg/analyzer/lib/src/generated/utilities_collection.dart
@@ -469,6 +469,33 @@ class DirectedGraph_SccFinder<N> {
}
/**
+ * An efficient [int] set.
+ * Currently not really efficient.
+ */
+class IntSet {
+ HashSet<int> _set = new HashSet<int>();
+
+ bool get isEmpty {
+ return _set.isEmpty;
+ }
+
+ void add(int value) {
+ _set.add(value);
+ }
+
+ int remove() {
+ int value = _set.first;
+ _set.remove(value);
+ return value;
+ }
+
+ @override
+ String toString() {
+ return _set.toString();
+ }
+}
+
+/**
* The class `ListUtilities` defines utility methods useful for working with [List
].
*/

Powered by Google App Engine
This is Rietveld 408576698