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 b258a6e7962691b303b129c9138a78a1049cdd72..dbca60b3f828f6ba6918efd1456d7fbcc49193fa 100644 |
--- a/pkg/compiler/lib/src/inferrer/builder.dart |
+++ b/pkg/compiler/lib/src/inferrer/builder.dart |
@@ -4,7 +4,7 @@ |
library simple_types_inferrer; |
-import '../closure.dart' show ClosureClassMap; |
+import '../closure.dart' show ClosureRepresentationInfo; |
import '../common.dart'; |
import '../common/names.dart' show Identifiers, Selectors; |
import '../compiler.dart' show Compiler; |
@@ -914,7 +914,8 @@ class ElementGraphBuilder extends ast.Visitor<TypeInformation> |
// be handled specially, in that we are computing their LUB at |
// each update, and reading them yields the type that was found in a |
// previous analysis of [outermostElement]. |
- ClosureClassMap closureData = |
+ // TODO(efortuna): elminiate getClosureToClassMapping |
+ ClosureRepresentationInfo closureData = |
compiler.closureToClassMapper.getClosureToClassMapping(analyzedElement); |
closureData.forEachCapturedVariable((variable, field) { |
locals.setCaptured(variable, field); |
@@ -1098,7 +1099,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 = |
+ // TODO (efortuna): eliminate. |
+ ClosureRepresentationInfo nestedClosureData = |
compiler.closureToClassMapper.getClosureToClassMapping(element); |
nestedClosureData.forEachCapturedVariable((variable, field) { |
if (!nestedClosureData.isVariableBoxed(variable)) { |