Index: pkg/compiler/lib/src/dump_info.dart |
diff --git a/pkg/compiler/lib/src/dump_info.dart b/pkg/compiler/lib/src/dump_info.dart |
index 6cf48bd84e42b6263dbbea334e90c2fd02550217..7427c751e730d4f634a675377d0cc34356468023 100644 |
--- a/pkg/compiler/lib/src/dump_info.dart |
+++ b/pkg/compiler/lib/src/dump_info.dart |
@@ -214,11 +214,8 @@ class ElementInfoCollector extends BaseElementVisitor<Info, dynamic> { |
size: compiler.dumpInfoTask.sizeOf(element)); |
_elementToInfo[element] = closureInfo; |
- ClosureClassMap closureMap = compiler.closureToClassMapper |
- .getClosureToClassMapping(element.methodElement.resolvedAst); |
- assert(closureMap != null && closureMap.closureClassElement == element); |
- |
- FunctionInfo functionInfo = this.process(closureMap.callElement); |
+ FunctionInfo functionInfo = this.process(compiler.closureToClassMapper |
+ .getCallEntity(element.methodElement.resolvedAst)); |
Johnni Winther
2017/05/31 12:39:51
`element.methodElement.resolvedAst` -> `element.me
|
if (functionInfo == null) return null; |
closureInfo.function = functionInfo; |
functionInfo.parent = closureInfo; |