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

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

Issue 366853007: dart2dart: Support for inner functions in new IR. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: SVN rebase Created 6 years, 6 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 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) {
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/ir/ir_tracer.dart ('k') | tests/language/closure_variable_shadow_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698