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

Unified Diff: pkg/analyzer/lib/src/generated/resolver.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/generated/engine.dart ('k') | pkg/analyzer/lib/src/task/options.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/resolver.dart
diff --git a/pkg/analyzer/lib/src/generated/resolver.dart b/pkg/analyzer/lib/src/generated/resolver.dart
index b34587681f7074008a0487b7530bd3a446868c02..df3ad03b5db7488cf0265ee48f554e1d04641400 100644
--- a/pkg/analyzer/lib/src/generated/resolver.dart
+++ b/pkg/analyzer/lib/src/generated/resolver.dart
@@ -7169,12 +7169,6 @@ abstract class ScopedVisitor extends UnifyingAstVisitor<Object> {
LabelScope labelScope;
/**
- * A flag indicating whether to enable support for allowing access to field
- * formal parameters in a constructor's initializer list.
- */
- bool enableInitializingFormalAccess = false;
-
- /**
* The class containing the AST nodes being visited,
* or `null` if we are not in the scope of a class.
*/
@@ -7205,8 +7199,6 @@ abstract class ScopedVisitor extends UnifyingAstVisitor<Object> {
} else {
this.nameScope = nameScope;
}
- enableInitializingFormalAccess =
- definingLibrary.context.analysisOptions.enableInitializingFormalAccess;
}
/**
@@ -7368,7 +7360,7 @@ abstract class ScopedVisitor extends UnifyingAstVisitor<Object> {
node.parameters?.accept(this);
Scope functionScope = nameScope;
try {
- if (constructorElement != null && enableInitializingFormalAccess) {
+ if (constructorElement != null) {
nameScope =
new ConstructorInitializerScope(nameScope, constructorElement);
}
« no previous file with comments | « pkg/analyzer/lib/src/generated/engine.dart ('k') | pkg/analyzer/lib/src/task/options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698