Index: pkg/analyzer/lib/src/context/cache.dart |
diff --git a/pkg/analyzer/lib/src/context/cache.dart b/pkg/analyzer/lib/src/context/cache.dart |
index 58dda21e126e14261828af9ad83badd89682cb84..d55d2fd18823dc8563dc17de26345d15b23cba64 100644 |
--- a/pkg/analyzer/lib/src/context/cache.dart |
+++ b/pkg/analyzer/lib/src/context/cache.dart |
@@ -1229,7 +1229,8 @@ abstract class CachePartition { |
} |
bool _isPriorityAnalysisTarget(AnalysisTarget target) { |
- return context.priorityTargets.contains(target); |
+ Source source = target.source; |
+ return source != null && context.prioritySources.contains(source); |
} |
/** |