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

Unified Diff: pkg/compiler/lib/src/kernel/kernel_visitor.dart

Issue 2360773003: More kernel_impact. (Closed)
Patch Set: Created 4 years, 3 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/kernel/kernel_visitor.dart
diff --git a/pkg/compiler/lib/src/kernel/kernel_visitor.dart b/pkg/compiler/lib/src/kernel/kernel_visitor.dart
index 77a5161cf39f6d2c71137df112fa80d06011b790..84096868f299798236c7416173586ccd58dbcfb8 100644
--- a/pkg/compiler/lib/src/kernel/kernel_visitor.dart
+++ b/pkg/compiler/lib/src/kernel/kernel_visitor.dart
@@ -1211,7 +1211,10 @@ class KernelVisitor extends Object
ir.FunctionExpression visitClosureDeclaration(FunctionExpression node,
LocalFunctionElement closure, NodeList parameters, Node body, _) {
return withCurrentElement(closure, () {
- return new ir.FunctionExpression(buildFunctionNode(closure, body));
+ ir.FunctionExpression function =
+ new ir.FunctionExpression(buildFunctionNode(closure, body));
+ kernel.localFunctions[closure] = function;
+ return function;
});
}

Powered by Google App Engine
This is Rietveld 408576698