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

Unified Diff: utils/pub/yaml/yaml_map.dart

Issue 11414069: Make mappedBy lazy. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Reupload due to error. Created 8 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
Index: utils/pub/yaml/yaml_map.dart
diff --git a/utils/pub/yaml/yaml_map.dart b/utils/pub/yaml/yaml_map.dart
index fdae1515e958fe3713f35dca82fdbd5d8fa4c1f9..a0479bd929c49be8cf5df708fe71596bad624d3f 100644
--- a/utils/pub/yaml/yaml_map.dart
+++ b/utils/pub/yaml/yaml_map.dart
@@ -29,7 +29,7 @@ class YamlMap implements Map {
void clear() => _map.clear();
void forEach(void f(key, value)) =>
_map.forEach((k, v) => f(_unwrapKey(k), v));
- Collection get keys => _map.keys.mappedBy(_unwrapKey);
+ Collection get keys => _map.keys.mappedBy(_unwrapKey).toList();
Collection get values => _map.values;
int get length => _map.length;
bool get isEmpty => _map.isEmpty;

Powered by Google App Engine
This is Rietveld 408576698