Index: pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart |
diff --git a/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart b/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart |
index bb78b62ff45ec5f67ddd92ba8f1f3675aa0e47d2..f589becefa192723b66c6836cd0b6a35d89af3bf 100644 |
--- a/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart |
+++ b/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart |
@@ -125,10 +125,10 @@ class KernelAstAdapter extends KernelToElementMapMixin |
// Closures require a lookup one level deeper in the closure class mapper. |
if (target == null) { |
MethodElement originTargetFunction = originTarget; |
- ClosureClassMap classMap = _compiler.closureToClassMapper |
- .getClosureToClassMapping(originTargetFunction); |
- if (classMap.closureElement != null) { |
- target = kernel.localFunctions[classMap.closureElement]; |
+ ClosureRepresentationInfo classMap = _compiler.closureToClassMapper |
+ .getClosureRepresentationInfo(originTargetFunction); |
+ if (classMap.closureEntity != null) { |
+ target = kernel.localFunctions[classMap.closureEntity]; |
} |
} |
} else if (originTarget is FieldElement) { |