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

Unified Diff: utils/pub/version.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/version.dart
diff --git a/utils/pub/version.dart b/utils/pub/version.dart
index 67e1be66a22126a24d03f527ac0df290e0c5b477..072c97dbe5165af4d1a3c5887a7eb918304e76b9 100644
--- a/utils/pub/version.dart
+++ b/utils/pub/version.dart
@@ -187,7 +187,7 @@ class Version implements Comparable, VersionConstraint {
// Not a number.
return part;
}
- });
+ }).toList();
}
}
@@ -226,7 +226,7 @@ interface VersionConstraint default _VersionConstraintFactory {
* constraints is empty, then it returns a VersionConstraint that allows all
* versions.
*/
- VersionConstraint.intersect(Collection<VersionConstraint> constraints);
+ VersionConstraint.intersect(Iterable<VersionConstraint> constraints);
/**
* Returns `true` if this constraint allows no versions.
@@ -393,7 +393,7 @@ class _VersionConstraintFactory {
}
factory VersionConstraint.intersect(
- Collection<VersionConstraint> constraints) {
+ Iterable<VersionConstraint> constraints) {
var constraint = new VersionRange();
for (var other in constraints) {
constraint = constraint.intersect(other);

Powered by Google App Engine
This is Rietveld 408576698