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

Unified Diff: utils/pub/hosted_source.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/hosted_source.dart
diff --git a/utils/pub/hosted_source.dart b/utils/pub/hosted_source.dart
index f8f82db2e3e3a3de4d6a1c87397b0d0dd5492506..53ca4a92953768136c591c262bb40917ccffa171 100644
--- a/utils/pub/hosted_source.dart
+++ b/utils/pub/hosted_source.dart
@@ -40,7 +40,9 @@ class HostedSource extends Source {
return httpGetString(fullUrl).transform((body) {
var doc = json.parse(body);
- return doc['versions'].mappedBy((version) => new Version.parse(version));
+ return doc['versions']
+ .mappedBy((version) => new Version.parse(version))
+ .toList();
}).transformException((ex) {
_throwFriendlyError(ex, parsed.first, parsed.last);
});

Powered by Google App Engine
This is Rietveld 408576698