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 c84b5dd3fc15faee47b8ffa71b7ce173d3aee74b..38d095ab2ba07b5cfd0936372fcaf12057c075f3 100644 |
--- a/pkg/analyzer/lib/src/context/context.dart |
+++ b/pkg/analyzer/lib/src/context/context.dart |
@@ -764,7 +764,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) { |
@@ -1023,10 +1024,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 |