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

Unified Diff: runtime/lib/collection_patch.dart

Issue 1104063002: Make EfficientLength public, as EfficientLengthIterable. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comment. Created 5 years, 7 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
Index: runtime/lib/collection_patch.dart
diff --git a/runtime/lib/collection_patch.dart b/runtime/lib/collection_patch.dart
index 8ed4e91cbea24f8d1d51ef10ca6d8cf57b5aea99..be2a2dd2f61ccd0915761bc009e9cc407aeda7d0 100644
--- a/runtime/lib/collection_patch.dart
+++ b/runtime/lib/collection_patch.dart
@@ -432,8 +432,8 @@ class _HashMapEntry {
_HashMapEntry(this.key, this.value, this.hashCode, this.next);
}
-abstract class _HashMapIterable<E> extends IterableBase<E>
- implements EfficientLength {
+abstract class _HashMapIterable<E> extends Iterable<E>
+ implements EfficientLengthIterable<E> {
final HashMap _map;
_HashMapIterable(this._map);
int get length => _map.length;
@@ -835,8 +835,8 @@ class _LinkedHashMapEntry extends _HashMapEntry {
}
}
-class _LinkedHashMapKeyIterable<K> extends IterableBase<K>
- implements EfficientLength {
+class _LinkedHashMapKeyIterable<K> extends Iterable<K>
+ implements EfficientLengthIterable<K> {
LinkedHashMap<K, dynamic> _map;
_LinkedHashMapKeyIterable(this._map);
Iterator<K> get iterator => new _LinkedHashMapKeyIterator<K>(_map);
@@ -847,8 +847,8 @@ class _LinkedHashMapKeyIterable<K> extends IterableBase<K>
Set<K> toSet() => _map._newKeySet()..addAll(this);
}
-class _LinkedHashMapValueIterable<V> extends IterableBase<V>
- implements EfficientLength {
+class _LinkedHashMapValueIterable<V> extends Iterable<V>
+ implements EfficientLengthIterable<V> {
LinkedHashMap<dynamic, V> _map;
_LinkedHashMapValueIterable(this._map);
Iterator<V> get iterator => new _LinkedHashMapValueIterator<V>(_map);

Powered by Google App Engine
This is Rietveld 408576698