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

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

Issue 2532953004: Enable read-only access to initializing formals (issue 27895) (Closed)
Patch Set: Created 4 years, 1 month 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/analyzer/lib/src/context/context.dart ('k') | pkg/analyzer/lib/src/generated/resolver.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 0301ed00c7f30d053673b68fa2e8167c0acf582f..fa314ee432dcf6b814966911e869d87ed93e20ee 100644
--- a/pkg/analyzer/lib/src/generated/engine.dart
+++ b/pkg/analyzer/lib/src/generated/engine.dart
@@ -1129,6 +1129,7 @@ abstract class AnalysisOptions {
* Return `true` if access to field formal parameters should be allowed in a
* constructor's initializer list.
*/
+ @deprecated
bool get enableInitializingFormalAccess;
/**
@@ -1330,9 +1331,6 @@ class AnalysisOptionsImpl implements AnalysisOptions {
bool enableAssertMessage = false;
@override
- bool enableInitializingFormalAccess = false;
-
- @override
bool enableLazyAssignmentOperators = false;
@override
@@ -1453,7 +1451,6 @@ class AnalysisOptionsImpl implements AnalysisOptions {
enableAssertInitializer = options.enableAssertInitializer;
enableAssertMessage = options.enableAssertMessage;
enableStrictCallChecks = options.enableStrictCallChecks;
- enableInitializingFormalAccess = options.enableInitializingFormalAccess;
enableLazyAssignmentOperators = options.enableLazyAssignmentOperators;
enableSuperMixins = options.enableSuperMixins;
enableTiming = options.enableTiming;
@@ -1533,6 +1530,13 @@ class AnalysisOptionsImpl implements AnalysisOptions {
@deprecated
void set enableGenericMethods(bool enable) {}
+ @deprecated
+ @override
+ bool get enableInitializingFormalAccess => true;
+
+ @deprecated
+ void set enableInitializingFormalAccess(bool enable) {}
+
@override
List<ErrorProcessor> get errorProcessors =>
_errorProcessors ??= const <ErrorProcessor>[];
« no previous file with comments | « pkg/analyzer/lib/src/context/context.dart ('k') | pkg/analyzer/lib/src/generated/resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698