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_generated/lib/src/package_graph.dart

Issue 597773003: Have barback lazily load assets from static pub packages. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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_generated/lib/src/barback/pub_package_provider.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub_generated/lib/src/package_graph.dart
diff --git a/sdk/lib/_internal/pub_generated/lib/src/package_graph.dart b/sdk/lib/_internal/pub_generated/lib/src/package_graph.dart
index 13a37795a0ea3117cb927a2be19f66374a1d41a0..a52f405b17afca218e610dcbfd26d55e97a54799 100644
--- a/sdk/lib/_internal/pub_generated/lib/src/package_graph.dart
+++ b/sdk/lib/_internal/pub_generated/lib/src/package_graph.dart
@@ -47,4 +47,11 @@ class PackageGraph {
return entrypoint.cache.sources[depId.source] is! CachedSource;
});
}
+ bool isPackageStatic(String package) {
+ var id = lockFile.packages[package];
+ if (id == null) return false;
+ var source = entrypoint.cache.sources[id.source];
+ if (source is! CachedSource) return true;
+ return packages[package].pubspec.transformers.isEmpty;
+ }
}
« no previous file with comments | « sdk/lib/_internal/pub_generated/lib/src/barback/pub_package_provider.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698