| Index: pkg/compiler/lib/src/inferrer/builder.dart
|
| diff --git a/pkg/compiler/lib/src/inferrer/builder.dart b/pkg/compiler/lib/src/inferrer/builder.dart
|
| index d24d423c26e2a66594a190dd77224c83face4c13..9c8e6262c7342e6a7d72700560dd9fdecce1c711 100644
|
| --- a/pkg/compiler/lib/src/inferrer/builder.dart
|
| +++ b/pkg/compiler/lib/src/inferrer/builder.dart
|
| @@ -915,7 +915,7 @@ class ElementGraphBuilder extends ast.Visitor<TypeInformation>
|
| // each update, and reading them yields the type that was found in a
|
| // previous analysis of [outermostElement].
|
| ClosureClassMap closureData =
|
| - compiler.closureToClassMapper.getClosureToClassMapping(resolvedAst);
|
| + compiler.closureToClassMapper.getClosureToClassMapping(analyzedElement);
|
| closureData.forEachCapturedVariable((variable, field) {
|
| locals.setCaptured(variable, field);
|
| });
|
| @@ -1098,8 +1098,8 @@ class ElementGraphBuilder extends ast.Visitor<TypeInformation>
|
| // Record the types of captured non-boxed variables. Types of
|
| // these variables may already be there, because of an analysis of
|
| // a previous closure.
|
| - ClosureClassMap nestedClosureData = compiler.closureToClassMapper
|
| - .getClosureToClassMapping(element.resolvedAst);
|
| + ClosureClassMap nestedClosureData =
|
| + compiler.closureToClassMapper.getClosureToClassMapping(element);
|
| nestedClosureData.forEachCapturedVariable((variable, field) {
|
| if (!nestedClosureData.isVariableBoxed(variable)) {
|
| if (variable == nestedClosureData.thisLocal) {
|
|
|