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 1c6bbe299e1c24a395a99d38d32c04b9391c9395..2b4b2f60018d1b3e062e2e82a211924cdf505596 100644 |
--- a/pkg/compiler/lib/src/inferrer/builder.dart |
+++ b/pkg/compiler/lib/src/inferrer/builder.dart |
@@ -923,7 +923,7 @@ class ElementGraphBuilder extends ast.Visitor<TypeInformation> |
// previous analysis of [outermostElement]. |
ClosureRepresentationInfo closureData = compiler |
.backendStrategy.closureDataLookup |
- .getClosureRepresentationInfo(analyzedElement); |
+ .getMemberRepresentationInfo(analyzedElement); |
closureData.forEachCapturedVariable((variable, field) { |
locals.setCaptured(variable, field); |
}); |
@@ -1120,7 +1120,7 @@ class ElementGraphBuilder extends ast.Visitor<TypeInformation> |
// a previous closure. |
ClosureRepresentationInfo nestedClosureData = compiler |
.backendStrategy.closureDataLookup |
- .getClosureRepresentationInfo(element); |
+ .getClosureRepresentationInfo(node); |
nestedClosureData.forEachCapturedVariable((variable, field) { |
if (!nestedClosureData.isVariableBoxed(variable)) { |
if (variable == nestedClosureData.thisLocal) { |