Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(557)

Unified Diff: pkg/compiler/lib/src/dump_info.dart

Issue 2915523003: Create new interface instead of ClosureClassMap for variable usage information that is not Element-…
Patch Set: . Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698