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

Unified Diff: sdk/lib/_internal/js_runtime/lib/collection_patch.dart

Issue 2467113003: Make EfficientLength extend Iterable. (Closed)
Patch Set: Reverted, prepare to reland. Make new test not break web-testing framework. Created 4 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 | « runtime/vm/debugger_api_impl_test.cc ('k') | sdk/lib/_internal/js_runtime/lib/js_array.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/js_runtime/lib/collection_patch.dart
diff --git a/sdk/lib/_internal/js_runtime/lib/collection_patch.dart b/sdk/lib/_internal/js_runtime/lib/collection_patch.dart
index beb67f242d1d6437db5aee3cda1d6bdb95ef2725..0d61257018465e63b6d8e2dfbe38e57e146537af 100644
--- a/sdk/lib/_internal/js_runtime/lib/collection_patch.dart
+++ b/sdk/lib/_internal/js_runtime/lib/collection_patch.dart
@@ -431,8 +431,7 @@ class _CustomHashMap<K, V> extends _HashMap<K, V> {
String toString() => Maps.mapToString(this);
}
-class _HashMapKeyIterable<E> extends Iterable<E>
- implements EfficientLength {
+class _HashMapKeyIterable<E> extends EfficientLengthIterable<E> {
final _map;
_HashMapKeyIterable(this._map);
@@ -664,8 +663,7 @@ class _Es6LinkedIdentityHashMap<K, V>
String toString() => Maps.mapToString(this);
}
-class _Es6MapIterable<E> extends Iterable<E>
- implements EfficientLength {
+class _Es6MapIterable<E> extends EfficientLengthIterable<E> {
final _map;
final bool _isKeys;
« no previous file with comments | « runtime/vm/debugger_api_impl_test.cc ('k') | sdk/lib/_internal/js_runtime/lib/js_array.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698