Index: pkg/analyzer/lib/src/generated/declaration_resolver.dart |
diff --git a/pkg/analyzer/lib/src/generated/declaration_resolver.dart b/pkg/analyzer/lib/src/generated/declaration_resolver.dart |
index c7370bc45a65cd18a8336cff03d4595cb5ef866d..14ab0dc91d79927311ec09279ed260cf4e3e5d41 100644 |
--- a/pkg/analyzer/lib/src/generated/declaration_resolver.dart |
+++ b/pkg/analyzer/lib/src/generated/declaration_resolver.dart |
@@ -805,7 +805,7 @@ class ElementWalker { |
if (element is ExecutableElementImpl) { |
element.functions = _elementHolder.functions; |
element.labels = _elementHolder.labels; |
- element.localVariables = _elementHolder.localVariables; |
+ element.encloseElements(_elementHolder.localVariables); |
} |
} |