Index: pkg/analyzer_cli/lib/src/driver.dart |
diff --git a/pkg/analyzer_cli/lib/src/driver.dart b/pkg/analyzer_cli/lib/src/driver.dart |
index 19b7af4c977dfadd44b981bded9185911cf2d3c9..4998f07fcb2e6f49f087b97b2af49c728c1ec105 100644 |
--- a/pkg/analyzer_cli/lib/src/driver.dart |
+++ b/pkg/analyzer_cli/lib/src/driver.dart |
@@ -454,6 +454,7 @@ class Driver { |
contextOptions.lint = options.lints; |
contextOptions.strongMode = options.strongMode; |
context.analysisOptions = contextOptions; |
+ sourceFactory.dartSdk.context.analysisOptions = contextOptions; |
_context = context; |
// Process analysis options file (and notify all interested parties). |