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 85c53ee2809121a4d3158aeadb80021ced4dfb00..dc40c0d6f3fe3927b1173258deaf65a83f8eccc9 100644 |
--- a/pkg/analyzer_cli/lib/src/driver.dart |
+++ b/pkg/analyzer_cli/lib/src/driver.dart |
@@ -271,6 +271,10 @@ class Driver implements CommandLineStarter { |
if (options.enableSuperMixins != _previousOptions.enableSuperMixins) { |
return false; |
} |
+ if (options.enableConditionalDirectives != |
+ _previousOptions.enableConditionalDirectives) { |
+ return false; |
+ } |
return true; |
} |
@@ -579,6 +583,8 @@ class Driver implements CommandLineStarter { |
contextOptions.hint = !options.disableHints; |
contextOptions.enableStrictCallChecks = options.enableStrictCallChecks; |
contextOptions.enableSuperMixins = options.enableSuperMixins; |
+ contextOptions.enableConditionalDirectives = |
+ options.enableConditionalDirectives; |
contextOptions.generateImplicitErrors = options.showPackageWarnings; |
contextOptions.generateSdkErrors = options.showSdkWarnings; |
contextOptions.lint = options.lints; |