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

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

Issue 675113002: Support async/await in the dart2js frontend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments Created 6 years, 1 month 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
« no previous file with comments | « tests/compiler/dart2js/async_await_syntax_test.dart ('k') | tests/compiler/dart2js/frontend_checker.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/backend_dart/dart_printer_test.dart
diff --git a/tests/compiler/dart2js/backend_dart/dart_printer_test.dart b/tests/compiler/dart2js/backend_dart/dart_printer_test.dart
index 180870f6804fceda58b94d9cbbc7e649dde638c6..f2780808b83014c277652a445512b37cd4d7a528 100644
--- a/tests/compiler/dart2js/backend_dart/dart_printer_test.dart
+++ b/tests/compiler/dart2js/backend_dart/dart_printer_test.dart
@@ -417,11 +417,13 @@ class AstBuilder extends Listener {
handleNoFormalParameters(tok) {
push(new Parameters([]));
}
- endUnamedFunction(t) {
+
+ endUnnamedFunction(t) {
Statement body = pop();
Parameters parameters = pop();
push(new FunctionExpression(parameters, body));
}
+
handleNoType(Token token) {
push(null);
}
@@ -572,7 +574,7 @@ class AstBuilder extends Listener {
push(null);
}
- endForIn(Token begin, Token inKeyword, Token end) {
+ endForIn(Token await, Token begin, Token inKeyword, Token end) {
Statement body = pop();
Expression exp = pop();
Node declaredIdentifier = pop();
« no previous file with comments | « tests/compiler/dart2js/async_await_syntax_test.dart ('k') | tests/compiler/dart2js/frontend_checker.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698