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: sdk/lib/_internal/lib/collection_patch.dart

Issue 26681002: Add EfficientLength marker interface to some iterabels. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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: sdk/lib/_internal/lib/collection_patch.dart
diff --git a/sdk/lib/_internal/lib/collection_patch.dart b/sdk/lib/_internal/lib/collection_patch.dart
index 7d6313c42dfd6466c8d4cac242a995d3be1f577c..2d145d5d546cc9ef24691dcbcbfad17322800a0e 100644
--- a/sdk/lib/_internal/lib/collection_patch.dart
+++ b/sdk/lib/_internal/lib/collection_patch.dart
@@ -401,7 +401,8 @@ class _CustomHashMap<K, V> extends _HashMap<K, V> {
String toString() => Maps.mapToString(this);
}
-class HashMapKeyIterable<E> extends IterableBase<E> {
+class HashMapKeyIterable<E> extends IterableBase<E>
+ implements EfficientLength {
final _map;
HashMapKeyIterable(this._map);
@@ -850,7 +851,8 @@ class LinkedHashMapCell {
LinkedHashMapCell(this._key, this._value);
}
-class LinkedHashMapKeyIterable<E> extends IterableBase<E> {
+class LinkedHashMapKeyIterable<E> extends IterableBase<E>
+ implements EfficientLength {
final _map;
LinkedHashMapKeyIterable(this._map);

Powered by Google App Engine
This is Rietveld 408576698