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

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

Issue 1778683004: CLI support for `enableConditionalDirectives`. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: typos Created 4 years, 9 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') | pkg/analyzer_cli/test/options_test.dart » ('J')
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 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;
« no previous file with comments | « no previous file | pkg/analyzer_cli/lib/src/options.dart » ('j') | pkg/analyzer_cli/test/options_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698