| Index: pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart
|
| diff --git a/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart b/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart
|
| index 85e5dbd8d967f7f688eb86d1c9b7136e7471d7ce..f56483d6ec0b1687ad8d0bc80afe4c9a6e0a986f 100644
|
| --- a/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart
|
| +++ b/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart
|
| @@ -374,7 +374,7 @@ class SimpleTypeInferrerVisitor<T>
|
| // each update, and reading them yields the type that was found in a
|
| // previous analysis of [outermostElement].
|
| ClosureClassMap closureData =
|
| - compiler.closureToClassMapper.computeClosureToClassMapping(resolvedAst);
|
| + compiler.closureToClassMapper.getClosureToClassMapping(resolvedAst);
|
| closureData.forEachCapturedVariable((variable, field) {
|
| locals.setCaptured(variable, field);
|
| });
|
| @@ -558,8 +558,8 @@ class SimpleTypeInferrerVisitor<T>
|
| // 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.getMappingForNestedFunction(node);
|
| + ClosureClassMap nestedClosureData = compiler.closureToClassMapper
|
| + .getClosureToClassMapping(element.resolvedAst);
|
| nestedClosureData.forEachCapturedVariable((variable, field) {
|
| if (!nestedClosureData.isVariableBoxed(variable)) {
|
| if (variable == nestedClosureData.thisLocal) {
|
|
|