| 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 094e469713e1ecac982b382bcc3ebe8a16de4183..81ea469b63f6590501c0fc96417ae3b571d9c1ec 100644
|
| --- a/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart
|
| +++ b/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart
|
| @@ -227,7 +227,13 @@ class KernelAstAdapter extends KernelToElementMapBaseMixin
|
|
|
| LibraryElement getLibrary(ir.Library node) => getElement(node).declaration;
|
|
|
| - LocalFunctionElement getLocalFunction(ir.TreeNode node) => getElement(node);
|
| + LocalFunctionElement getLocalFunction(ir.TreeNode node) {
|
| + assert(
|
| + node is ir.FunctionDeclaration || node is ir.FunctionExpression,
|
| + failedAt(
|
| + CURRENT_ELEMENT_SPANNABLE, 'Invalid local function node: $node'));
|
| + return getElement(node);
|
| + }
|
|
|
| /// Returns the uri for the deferred import [node].
|
| String getDeferredUri(ir.LibraryDependency node) {
|
|
|