Index: pkg/analysis_server/lib/src/context_manager.dart |
diff --git a/pkg/analysis_server/lib/src/context_manager.dart b/pkg/analysis_server/lib/src/context_manager.dart |
index 05a3fa108e7565c80e5091b328b664a66a1d35b2..3e72ad50054c00c2ed03b97f0e3bea255cc94222 100644 |
--- a/pkg/analysis_server/lib/src/context_manager.dart |
+++ b/pkg/analysis_server/lib/src/context_manager.dart |
@@ -484,6 +484,16 @@ class ContextManagerImpl implements ContextManager { |
return; |
} |
+ // Set strong mode. |
+ var strongMode = analyzer['strong-mode']; |
+ if (strongMode == true) { |
+ AnalysisContext context = info.context; |
+ AnalysisOptionsImpl options = |
+ new AnalysisOptionsImpl.from(context.analysisOptions); |
+ options.strongMode = true; |
+ context.analysisOptions = options; |
+ } |
+ |
// Set ignore patterns. |
YamlList exclude = analyzer['exclude']; |
if (exclude != null) { |