| Index: sdk/lib/_internal/compiler/implementation/dart_backend/dart_tree_printer.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/dart_backend/dart_tree_printer.dart b/sdk/lib/_internal/compiler/implementation/dart_backend/dart_tree_printer.dart
|
| index 0d604cba6571dc13b3ea213bed572dafa6ac05b3..3789b141dad383123a6f7a39e7fea73e2fd5ff59 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/dart_backend/dart_tree_printer.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/dart_backend/dart_tree_printer.dart
|
| @@ -679,14 +679,16 @@ class TreePrinter {
|
| forToken,
|
| inToken);
|
| } else if (stmt is FunctionDeclaration) {
|
| - return new tree.FunctionDeclaration(new tree.FunctionExpression(
|
| + tree.FunctionExpression function = new tree.FunctionExpression(
|
| stmt.name != null ? makeIdentifier(stmt.name) : null,
|
| makeParameters(stmt.parameters),
|
| makeFunctionBody(stmt.body),
|
| stmt.returnType != null ? makeType(stmt.returnType) : null,
|
| makeEmptyModifiers(), // TODO(asgerf): Function modifiers?
|
| null, // initializers
|
| - null)); // get/set
|
| + null); // get/set
|
| + setElement(function, stmt.function.element, stmt);
|
| + return new tree.FunctionDeclaration(function);
|
| } else if (stmt is If) {
|
| if (stmt.elseStatement == null || isEmptyStatement(stmt.elseStatement)) {
|
| tree.Node node = new tree.If(
|
|
|