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 4f31bb2f47ffb15b835f2c2c74209f9172d4d8c0..a83e8a642c5d821b0cdd8a6ee75249c992d8cfc2 100644 |
--- a/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart |
+++ b/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart |
@@ -46,6 +46,9 @@ class KernelAstAdapter { |
for (LibraryElement libraryElement in kernel.libraries.keys) { |
_nodeToElement[kernel.libraries[libraryElement]] = libraryElement; |
} |
+ for (LocalFunctionElement localFunction in kernel.localFunctions.keys) { |
+ _nodeToElement[kernel.localFunctions[localFunction]] = localFunction; |
+ } |
_typeConverter = new DartTypeConverter(this); |
} |