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

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

Issue 331263002: Improve parallelism when loading transformer plugins. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review Created 6 years, 6 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 | « sdk/lib/_internal/pub/lib/src/dart.dart ('k') | sdk/lib/_internal/pub/lib/src/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/lib/src/package_graph.dart
diff --git a/sdk/lib/_internal/pub/lib/src/package_graph.dart b/sdk/lib/_internal/pub/lib/src/package_graph.dart
index 47e1349bfec2cd9679e2844ca483dc6b08e7a18f..14913787b95be9a5c9a70ad98a672c5762a03332 100644
--- a/sdk/lib/_internal/pub/lib/src/package_graph.dart
+++ b/sdk/lib/_internal/pub/lib/src/package_graph.dart
@@ -25,22 +25,4 @@ class PackageGraph {
final Map<String, Package> packages;
PackageGraph(this.entrypoint, this.lockFile, this.packages);
-
- /// Returns the set of transitive dependencies of the package named
- /// [packageName].
- Set<Package> transitiveDependencies(String packageName) {
- var seen = new Set<Package>();
- traverse(Package package) {
- if (seen.contains(package)) return;
- seen.add(package);
- for (var dep in package.dependencies) {
- traverse(packages[dep.name]);
- }
- }
-
- var package = packages[packageName];
- traverse(package);
- seen.remove(package);
- return seen;
- }
}
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/dart.dart ('k') | sdk/lib/_internal/pub/lib/src/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698