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

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

Issue 22893029: Revise output of list-package-dirs. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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/entrypoint.dart
diff --git a/sdk/lib/_internal/pub/lib/src/entrypoint.dart b/sdk/lib/_internal/pub/lib/src/entrypoint.dart
index 9ec81ec0173738861b7b3789333a3cbe8aa5d660..aec7cf98a5fb935dfa8b2ee957cc5b7b90e4affb 100644
--- a/sdk/lib/_internal/pub/lib/src/entrypoint.dart
+++ b/sdk/lib/_internal/pub/lib/src/entrypoint.dart
@@ -54,7 +54,10 @@ class Entrypoint {
String get packagesDir => path.join(root.dir, 'packages');
/// `true` if the entrypoint package currently has a lock file.
- bool get lockFileExists => entryExists(_lockFilePath);
+ bool get lockFileExists => entryExists(lockFilePath);
+
+ /// The path to the entrypoint package's lockfile.
+ String get lockFilePath => path.join(root.dir, 'pubspec.lock');
/// Ensures that the package identified by [id] is installed to the directory.
/// Returns the resolved [PackageId].
@@ -150,7 +153,7 @@ class Entrypoint {
/// exists. If it doesn't, this completes to an empty [LockFile].
LockFile loadLockFile() {
if (!lockFileExists) return new LockFile.empty();
- return new LockFile.load(_lockFilePath, cache.sources);
+ return new LockFile.load(lockFilePath, cache.sources);
}
/// Determines whether or not the lockfile is out of date with respect to the
@@ -183,9 +186,6 @@ class Entrypoint {
return true;
}
- /// The path to the entrypoint package's lockfile.
- String get _lockFilePath => path.join(root.dir, 'pubspec.lock');
-
/// Saves a list of concrete package versions to the `pubspec.lock` file.
void _saveLockFile(List<PackageId> packageIds) {
var lockFile = new LockFile.empty();

Powered by Google App Engine
This is Rietveld 408576698