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

Unified Diff: lib/src/version_range.dart

Issue 2029263003: Make the VersionUnion class public. (Closed) Base URL: git@github.com:dart-lang/pub_semver@master
Patch Set: Created 4 years, 7 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 | « lib/src/version_constraint.dart ('k') | lib/src/version_union.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/version_range.dart
diff --git a/lib/src/version_range.dart b/lib/src/version_range.dart
index 668b9b28ee7d7f5f82b049dc0c5956ad1cdbdfbb..145151f0af2e446b28aa516241ad046d3fea47f2 100644
--- a/lib/src/version_range.dart
+++ b/lib/src/version_range.dart
@@ -124,7 +124,7 @@ class VersionRange implements VersionConstraint {
if (other is Version) return allows(other);
if (other is VersionUnion) {
- return other.constraints.every((constraint) => allowsAll(constraint));
+ return other.ranges.every((constraint) => allowsAll(constraint));
}
if (other is VersionRange) {
@@ -151,7 +151,7 @@ class VersionRange implements VersionConstraint {
if (other is Version) return allows(other);
if (other is VersionUnion) {
- return other.constraints.any((constraint) => allowsAny(constraint));
+ return other.ranges.any((constraint) => allowsAny(constraint));
}
if (other is VersionRange) {
« no previous file with comments | « lib/src/version_constraint.dart ('k') | lib/src/version_union.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698