Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1437)

Unified Diff: tests/compiler/dart2js/dart_printer_test.dart

Issue 263103003: Remove warnings from dart2js test-suite. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove debug code. Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) {
« no previous file with comments | « tests/compiler/dart2js/dart_backend_test.dart ('k') | tests/compiler/dart2js/deferred_load_graph_segmentation_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698