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 db292e7472517690fe740eeba1955f6ac561ebc8..4ac705eccbf1f7043367913ccadd4bdc2b85b932 100644 |
--- a/pkg/analyzer/lib/src/generated/resolver.dart |
+++ b/pkg/analyzer/lib/src/generated/resolver.dart |
@@ -10356,6 +10356,15 @@ class ResolverVisitor extends ScopedVisitor { |
} |
/** |
+ * A client is about to resolve a member in the given class declaration. |
+ */ |
+ void prepareToResolveMembersInClass(ClassDeclaration node) { |
+ _enclosingClassDeclaration = node; |
+ enclosingClass = node.element; |
+ typeAnalyzer.thisType = enclosingClass == null ? null : enclosingClass.type; |
+ } |
+ |
+ /** |
* If the given [type] is valid, strongly more specific than the |
* existing static type of the given [expression], record it as a propagated |
* type of the given [expression]. Otherwise, reset it to `null`. |