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

Unified Diff: utils/pub/package.dart

Issue 10214006: Refactor command code and add support for --help and --version. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase. Created 8 years, 8 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 | « utils/pub/command_version.dart ('k') | utils/pub/pub.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/package.dart
diff --git a/utils/pub/package.dart b/utils/pub/package.dart
index 8a672f82ab0cb56bb91e295f66907d1736ff22c8..8e621371591ac08f04df69a7343c5c017b5b35fc 100644
--- a/utils/pub/package.dart
+++ b/utils/pub/package.dart
@@ -46,7 +46,7 @@ class Package implements Hashable {
/**
* Reads and returns all of the packages this package immediately depends on.
*/
- Future<Collection<Package>> loadDependencies() {
+ Future<Collection<Package>> loadDependencies(PackageCache cache) {
return Futures.wait(dependencies.map((name) => cache.find(name)));
}
@@ -55,7 +55,7 @@ class Package implements Hashable {
* [Set] of all of the packages dependend on by this one, directly or
* indirectly. This package is included in the result set.
*/
- Future<Set<Package>> traverseDependencies() {
+ Future<Set<Package>> traverseDependencies(PackageCache cache) {
final completer = new Completer<Set<Package>>();
final packages = new Set<Package>();
« no previous file with comments | « utils/pub/command_version.dart ('k') | utils/pub/pub.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698