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

Unified Diff: pkg/analyzer/lib/src/generated/engine.dart

Issue 1044463005: Issue 23027. Try to make priority files analyzable. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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 | « pkg/analysis_server/test/domain_analysis_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/engine.dart
diff --git a/pkg/analyzer/lib/src/generated/engine.dart b/pkg/analyzer/lib/src/generated/engine.dart
index 4ad8d0117230c61aa8738e7d60ada590934a264d..d711bc680b6760d4a0ace946a4fcb38b2e6d0caa 100644
--- a/pkg/analyzer/lib/src/generated/engine.dart
+++ b/pkg/analyzer/lib/src/generated/engine.dart
@@ -1105,6 +1105,13 @@ class AnalysisContextImpl implements InternalAnalysisContext {
for (int i = 0; i < count; i++) {
_priorityOrder[i] = sources[i];
}
+ // Ensure entries for every priority source.
+ for (var source in _priorityOrder) {
+ SourceEntry entry = _getReadableSourceEntry(source);
+ if (entry == null) {
+ _createSourceEntry(source, false);
+ }
+ }
}
}
« no previous file with comments | « pkg/analysis_server/test/domain_analysis_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698