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

Unified Diff: pkg/analyzer/lib/src/context/context.dart

Issue 1420363005: Error Suppression FTW. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Test fix. Created 5 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 | « pkg/analysis_server/test/context_manager_test.dart ('k') | pkg/analyzer/lib/src/generated/engine.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/context/context.dart
diff --git a/pkg/analyzer/lib/src/context/context.dart b/pkg/analyzer/lib/src/context/context.dart
index 1a8fdf8d61bf554dfd672a9e2ac919ca759cb20b..aa8aa0f1ae8ea28b6ac30685ac89fd56e68d10a1 100644
--- a/pkg/analyzer/lib/src/context/context.dart
+++ b/pkg/analyzer/lib/src/context/context.dart
@@ -765,7 +765,8 @@ class AnalysisContextImpl implements InternalAnalysisContext {
}
@override
- Object getConfigurationData(ResultDescriptor key) => _configurationData[key];
+ Object getConfigurationData(ResultDescriptor key) =>
+ _configurationData[key] ?? key?.defaultValue;
@override
TimestampedData<String> getContents(Source source) {
@@ -1024,10 +1025,14 @@ class AnalysisContextImpl implements InternalAnalysisContext {
}
/**
- * Invalidate analysis cache.
+ * Invalidate analysis cache and notify work managers that they have work
+ * to do.
*/
void invalidateCachedResults() {
_cache = createCacheFromSourceFactory(_sourceFactory);
+ for (WorkManager workManager in workManagers) {
+ workManager.onAnalysisOptionsChanged();
+ }
}
@override
« no previous file with comments | « pkg/analysis_server/test/context_manager_test.dart ('k') | pkg/analyzer/lib/src/generated/engine.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698