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

Unified Diff: sdk/lib/_internal/pub/lib/src/version.dart

Issue 173113004: Improve the "pub lish" warnings about dependency constraints. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review Created 6 years, 10 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
Index: sdk/lib/_internal/pub/lib/src/version.dart
diff --git a/sdk/lib/_internal/pub/lib/src/version.dart b/sdk/lib/_internal/pub/lib/src/version.dart
index 1e92a3bda10a807e9ab615d13a66865e273b1f02..7577f9fe62524fc8c343e34b17a7aa840e0565dd 100644
--- a/sdk/lib/_internal/pub/lib/src/version.dart
+++ b/sdk/lib/_internal/pub/lib/src/version.dart
@@ -449,7 +449,7 @@ class VersionRange implements VersionConstraint {
bool get isEmpty => false;
- bool get isAny => !includeMin && !includeMax;
+ bool get isAny => min == null && max == null;
/// Tests if [other] matches falls within this version range.
bool allows(Version other) {
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/validator/dependency.dart ('k') | sdk/lib/_internal/pub/test/validator/dependency_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698