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 ee06547f051c669797d18aa0140af901f3bb4e4b..4d3651b122bc854aee6a2e5585bedd2949145ea1 100644 |
--- a/pkg/analyzer/lib/src/context/context.dart |
+++ b/pkg/analyzer/lib/src/context/context.dart |
@@ -267,6 +267,9 @@ class AnalysisContextImpl implements InternalAnalysisContext { |
(this._options.lint && !options.lint) || |
this._options.preserveComments != options.preserveComments || |
this._options.strongMode != options.strongMode || |
+ ((options is AnalysisOptionsImpl) |
+ ? this._options.strongModeHints != options.strongModeHints |
+ : false) || |
this._options.enableStrictCallChecks != |
options.enableStrictCallChecks || |
this._options.enableGenericMethods != options.enableGenericMethods || |
@@ -290,6 +293,9 @@ class AnalysisContextImpl implements InternalAnalysisContext { |
this._options.lint = options.lint; |
this._options.preserveComments = options.preserveComments; |
this._options.strongMode = options.strongMode; |
+ if (options is AnalysisOptionsImpl) { |
+ this._options.strongModeHints = options.strongModeHints; |
+ } |
if (needsRecompute) { |
for (WorkManager workManager in workManagers) { |
workManager.onAnalysisOptionsChanged(); |