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

Unified Diff: sdk/lib/_internal/compiler/implementation/lib/constant_map.dart

Issue 11859037: Remove collection-dev from the html and js-helper library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Also avoid collection-dev in js-helper. Created 7 years, 11 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
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/lib/js_helper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/lib/constant_map.dart
diff --git a/sdk/lib/_internal/compiler/implementation/lib/constant_map.dart b/sdk/lib/_internal/compiler/implementation/lib/constant_map.dart
index fabebbd9409216987699335fed2fef99fe1d1517..625e0ed7cf8e3e744387518d9195d406952954d8 100644
--- a/sdk/lib/_internal/compiler/implementation/lib/constant_map.dart
+++ b/sdk/lib/_internal/compiler/implementation/lib/constant_map.dart
@@ -35,7 +35,8 @@ class ConstantMap<V> implements Map<String, V> {
}
Iterable<V> get values {
- return new MappedIterable<String, V>(_keys, (String key) => this[key]);
+ // TODO(floitsch): don't wrap the map twice.
+ return keys.mappedBy((String key) => this[key]);
Lasse Reichstein Nielsen 2013/01/21 09:02:03 Just do: return _keys.mappedBy((String key) => t
floitsch 2013/01/21 14:16:10 No. The return type of 'values' should be an Itera
}
bool get isEmpty => length == 0;
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/lib/js_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698