Index: sdk/lib/collection/hash_set.dart |
diff --git a/sdk/lib/collection/hash_set.dart b/sdk/lib/collection/hash_set.dart |
index 22fb38f6f792aeedd8d185b238bc464836816d4d..69080293a042a40849539d22dcd0c79410a73482 100644 |
--- a/sdk/lib/collection/hash_set.dart |
+++ b/sdk/lib/collection/hash_set.dart |
@@ -19,6 +19,8 @@ class HashSet<E> extends Collection<E> implements Set<E> { |
// Iterable. |
Iterator<E> get iterator => new _HashTableKeyIterator<E>(_table); |
+ int get length => _table._elementCount; |
+ |
bool get isEmpty => _table._elementCount == 0; |
bool contains(Object object) => _table._get(object) >= 0; |