Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(307)

Unified Diff: pkg/analyzer_cli/lib/src/driver.dart

Issue 2809793004: CLI support for `enableAssertInitializer`s. (Closed)
Patch Set: options fix Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/analyzer_cli/lib/src/options.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « no previous file | pkg/analyzer_cli/lib/src/options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698