Index: pkg/analyzer/test/dart/element/builder_test.dart |
diff --git a/pkg/analyzer/test/dart/element/builder_test.dart b/pkg/analyzer/test/dart/element/builder_test.dart |
index 4104d784946838a2089e23ddcb8e26f4e0b846e7..3d6216702dd3fc52d6be468d69c346919220f9d6 100644 |
--- a/pkg/analyzer/test/dart/element/builder_test.dart |
+++ b/pkg/analyzer/test/dart/element/builder_test.dart |
@@ -1021,7 +1021,7 @@ main() { |
FunctionBody mainBody = mainAst.functionExpression.body; |
mainBody.accept(new LocalElementBuilder(holder, compilationUnitElement)); |
main.functions = holder.functions; |
- main.localVariables = holder.localVariables; |
+ main.encloseElements(holder.localVariables); |
var v1 = findLocalVariable(code, 'v1;'); |
var v2 = findLocalVariable(code, 'v2;'); |