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 6c3c6ddbc968b1d052bce8a738f7767d30e87348..cb562d0eb24ff51a1b9fcad4828cdab121f60fbc 100644 |
--- a/pkg/analyzer_cli/lib/src/driver.dart |
+++ b/pkg/analyzer_cli/lib/src/driver.dart |
@@ -319,6 +319,10 @@ class Driver implements CommandLineStarter { |
_previousOptions.enableStrictCallChecks) { |
return false; |
} |
+ if (options.enableAssertInitializer != |
+ _previousOptions.enableAssertInitializer) { |
+ return false; |
+ } |
if (options.showPackageWarnings != _previousOptions.showPackageWarnings) { |
return false; |
} |
@@ -764,6 +768,7 @@ class Driver implements CommandLineStarter { |
contextOptions.hint = !options.disableHints; |
contextOptions.generateImplicitErrors = options.showPackageWarnings; |
contextOptions.generateSdkErrors = options.showSdkWarnings; |
+ contextOptions.enableAssertInitializer = options.enableAssertInitializer; |
return contextOptions; |
} |