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

Unified Diff: pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart

Issue 2920253004: Revert "Revert "Make ClosureTask only accept Element-level APIs instead of resolvedAst."" (Closed)
Patch Set: fix teh tests Created 3 years, 6 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/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 bac8ea991074541cb6b6daa9f915fdea0aede728..c04d89bd24958853b8cc1d49e99afa0fea8625f3 100644
--- a/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart
+++ b/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart
@@ -116,7 +116,7 @@ class KernelAstAdapter extends KernelToElementMapMixin
if (target == null) {
MethodElement originTargetFunction = originTarget;
ClosureClassMap classMap = _compiler.closureToClassMapper
- .getClosureToClassMapping(originTargetFunction.resolvedAst);
+ .getClosureToClassMapping(originTargetFunction);
if (classMap.closureElement != null) {
target = kernel.localFunctions[classMap.closureElement];
}

Powered by Google App Engine
This is Rietveld 408576698