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

Unified Diff: pkg/analyzer/lib/src/generated/engine.dart

Issue 1851753002: Enable conditional directives by default. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fix analyzer test. Created 4 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 | « pkg/analysis_server/test/context_manager_test.dart ('k') | pkg/analyzer/test/src/task/options_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/engine.dart
diff --git a/pkg/analyzer/lib/src/generated/engine.dart b/pkg/analyzer/lib/src/generated/engine.dart
index 2a75edff0430c927b21c0eb45dbf29919eff8eda..96333ad7d93e0c0c7f3b0b23225932e7d5dccc85 100644
--- a/pkg/analyzer/lib/src/generated/engine.dart
+++ b/pkg/analyzer/lib/src/generated/engine.dart
@@ -1062,6 +1062,7 @@ abstract class AnalysisOptions {
/**
* Return `true` to enable interface libraries (DEP 40).
*/
+ @deprecated
bool get enableConditionalDirectives;
/**
@@ -1201,7 +1202,10 @@ class AnalysisOptionsImpl implements AnalysisOptions {
/**
* A flag indicating whether interface libraries are to be supported (DEP 40).
*/
- bool enableConditionalDirectives = false;
+ bool get enableConditionalDirectives => true;
+
+ @deprecated
+ void set enableConditionalDirectives(_) {}
/**
* A flag indicating whether generic methods are to be supported (DEP 22).
@@ -1297,7 +1301,6 @@ class AnalysisOptionsImpl implements AnalysisOptions {
dart2jsHint = options.dart2jsHint;
enableAssertMessage = options.enableAssertMessage;
enableAsync = options.enableAsync;
- enableConditionalDirectives = options.enableConditionalDirectives;
enableStrictCallChecks = options.enableStrictCallChecks;
enableGenericMethods = options.enableGenericMethods;
enableSuperMixins = options.enableSuperMixins;
« no previous file with comments | « pkg/analysis_server/test/context_manager_test.dart ('k') | pkg/analyzer/test/src/task/options_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698