| Index: tests/compiler/dart2js/dart_printer_test.dart
|
| diff --git a/tests/compiler/dart2js/dart_printer_test.dart b/tests/compiler/dart2js/dart_printer_test.dart
|
| index 857da9147cca01748e274bf12077decc52e2054f..bba37f415bce378784879968db1a7d54f026bdfc 100644
|
| --- a/tests/compiler/dart2js/dart_printer_test.dart
|
| +++ b/tests/compiler/dart2js/dart_printer_test.dart
|
| @@ -591,13 +591,14 @@ class AstBuilder extends Listener {
|
| push(statement);
|
| }
|
|
|
| - // TODO(kmillikin,asgerf): this code is currently untested.
|
| endFunctionDeclaration(Token end) {
|
| Statement body = pop();
|
| Parameters parameters = pop();
|
| String name = pop(asName);
|
| TypeAnnotation returnType = popTypeAnnotation();
|
| - push(new FunctionDeclaration(name, parameters, body, returnType));
|
| + push(new FunctionDeclaration(new FunctionExpression(parameters, body,
|
| + name: name,
|
| + returnType: returnType)));
|
| }
|
|
|
| endFunctionBody(int count, Token begin, Token end) {
|
|
|