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

Unified Diff: dart/sdk/lib/_internal/pub/lib/src/barback/transformer_cache.dart

Issue 651483004: Version 1.7.2 (Closed) Base URL: http://dart.googlecode.com/svn/branches/1.7/
Patch Set: Created 6 years, 2 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 | « no previous file | dart/sdk/lib/_internal/pub/test/transformer/cache_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/sdk/lib/_internal/pub/lib/src/barback/transformer_cache.dart
===================================================================
--- dart/sdk/lib/_internal/pub/lib/src/barback/transformer_cache.dart (revision 41095)
+++ dart/sdk/lib/_internal/pub/lib/src/barback/transformer_cache.dart (working copy)
@@ -56,6 +56,10 @@
/// Clear the cache if it depends on any package in [changedPackages].
void clearIfOutdated(Set<String> changedPackages) {
var snapshotDependencies = unionAll(_oldTransformers.map((id) {
+ // If the transformer cache contains transformers we don't know about,
+ // that's fine; we just won't load them.
+ if (!_graph.packages.containsKey(id.package)) return new Set();
+
return _graph.transitiveDependencies(id.package)
.map((package) => package.name).toSet();
}));
« no previous file with comments | « no previous file | dart/sdk/lib/_internal/pub/test/transformer/cache_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698