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 d570b0a9c5298826264fb5676c417cd08dd0fdd3..0c749c124f52cf8a119510739c4ee72cdfdcd301 100644 |
--- a/tests/compiler/dart2js/dart_printer_test.dart |
+++ b/tests/compiler/dart2js/dart_printer_test.dart |
@@ -586,12 +586,13 @@ 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 FunctionStatement(name, parameters, body, returnType)); |
+ push(new FunctionDeclaration(name, parameters, body)); |
} |
endFunctionBody(int count, Token begin, Token end) { |