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

Unified Diff: sdk/lib/_internal/lib/constant_map.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/constant_map.dart
diff --git a/sdk/lib/_internal/lib/constant_map.dart b/sdk/lib/_internal/lib/constant_map.dart
index 7febd185ff96805409dae7be7db215348c854c18..c8bbe6d610c49c7cf7c41a2561049a90b03dc224 100644
--- a/sdk/lib/_internal/lib/constant_map.dart
+++ b/sdk/lib/_internal/lib/constant_map.dart
@@ -23,7 +23,8 @@ abstract class ConstantMap<K, V> implements Map<K, V> {
// This class has no constructor. This is on purpose since the instantiation
// is shortcut by the compiler.
-class ConstantStringMap<K, V> extends ConstantMap<K, V> {
+class ConstantStringMap<K, V> extends ConstantMap<K, V>
+ implements EfficientLength {
final int length;
// A constant map is backed by a JavaScript object.
final _jsObject;

Powered by Google App Engine
This is Rietveld 408576698