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

Unified Diff: pkg/analyzer/lib/src/dart/analysis/library_analyzer.dart

Issue 2829253002: Add support for external summaries bundle in AnalysisDriver. (Closed)
Patch Set: Fixes for review comments. Created 3 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
Index: pkg/analyzer/lib/src/dart/analysis/library_analyzer.dart
diff --git a/pkg/analyzer/lib/src/dart/analysis/library_analyzer.dart b/pkg/analyzer/lib/src/dart/analysis/library_analyzer.dart
index acbf42300b4ae72a7b4fc96d5936ad918966cccb..4987624e24c485b77471c59be6a9b6a5434db4c8 100644
--- a/pkg/analyzer/lib/src/dart/analysis/library_analyzer.dart
+++ b/pkg/analyzer/lib/src/dart/analysis/library_analyzer.dart
@@ -758,6 +758,12 @@ class _ContentCacheWrapper implements ContentCache {
@override
bool getExists(Source source) {
+ if (fsState.externalSummaries != null) {
+ String uriStr = source.uri.toString();
+ if (fsState.externalSummaries.hasUnlinkedUnit(uriStr)) {
+ return true;
+ }
+ }
return _getFileForSource(source).exists;
}
« no previous file with comments | « pkg/analyzer/lib/src/dart/analysis/file_tracker.dart ('k') | pkg/analyzer/lib/src/dart/analysis/library_context.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698