| 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 ce4d11f614433e0d5ebc2f772e82ceb2d993c0f2..ef8d1d21aff6849d42c970794434a95972b7d334 100644
|
| --- a/sdk/lib/_internal/pub/lib/src/entrypoint.dart
|
| +++ b/sdk/lib/_internal/pub/lib/src/entrypoint.dart
|
| @@ -19,6 +19,8 @@ import 'source/cached.dart';
|
| import 'system_cache.dart';
|
| import 'utils.dart';
|
|
|
| +/// The context surrounding the root package pub is operating on.
|
| +///
|
| /// Pub operates over a directed graph of dependencies that starts at a root
|
| /// "entrypoint" package. This is typically the package where the current
|
| /// working directory is located. An entrypoint knows the [root] package it is
|
| @@ -147,7 +149,9 @@ class Entrypoint {
|
| }
|
|
|
| /// Loads the list of concrete package versions from the `pubspec.lock`, if it
|
| - /// exists. If it doesn't, this completes to an empty [LockFile].
|
| + /// 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);
|
| @@ -243,8 +247,10 @@ class Entrypoint {
|
| }
|
|
|
| /// Loads the package graph for the application and all of its transitive
|
| - /// dependencies. Before loading makes sure the lockfile and dependencies are
|
| - /// installed and up to date.
|
| + /// dependencies.
|
| + ///
|
| + /// Before loading, makes sure the lockfile and dependencies are installed
|
| + /// and up to date.
|
| Future<PackageGraph> loadPackageGraph() {
|
| return _ensureLockFileIsUpToDate().then((_) {
|
| var lockFile = loadLockFile();
|
|
|