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

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

Issue 365993007: Support "pub downgrade". (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review Created 6 years, 5 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/source.dart
diff --git a/sdk/lib/_internal/pub/lib/src/source.dart b/sdk/lib/_internal/pub/lib/src/source.dart
index 0235792e09bae5f34aae4f07eccea0e4bd17199d..f7674f52b157e39708d8c43c7a8f08ac8338df85 100644
--- a/sdk/lib/_internal/pub/lib/src/source.dart
+++ b/sdk/lib/_internal/pub/lib/src/source.dart
@@ -27,6 +27,10 @@ abstract class Source {
/// all sources.
String get name;
+ /// Whether this source can choose between multiple versions of the same
+ /// package during version solving.
+ bool get hasMultipleVersions;
Bob Nystrom 2014/07/14 22:10:07 I would default this to false here so you don't ha
nweiz 2014/07/14 23:03:02 Done.
+
/// Whether or not this source is the default source.
bool get isDefault => systemCache.sources.defaultSource == this;
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/solver/version_solver.dart ('k') | sdk/lib/_internal/pub/lib/src/source/git.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698