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

Unified Diff: pkg/compiler/lib/src/tree/prettyprint.dart

Issue 1069983005: Model 'await for' as an explicit node in tree and fix its handling. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix failing assertion rebase Created 5 years, 8 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
« no previous file with comments | « pkg/compiler/lib/src/tree/nodes.dart ('k') | pkg/compiler/lib/src/tree/unparser.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/tree/prettyprint.dart
diff --git a/pkg/compiler/lib/src/tree/prettyprint.dart b/pkg/compiler/lib/src/tree/prettyprint.dart
index 624848047815851e4defedafad110d86d0c1e86b..f01963b663a7c29a8b6e4828136aa5ce47dfff2a 100644
--- a/pkg/compiler/lib/src/tree/prettyprint.dart
+++ b/pkg/compiler/lib/src/tree/prettyprint.dart
@@ -190,8 +190,12 @@ class PrettyPrinter extends Indentation implements Visitor {
visitNodeWithChildren(node, "For");
}
- visitForIn(ForIn node) {
- openNode(node, "ForIn", {'await': node.awaitToken});
+ visitAsyncForIn(AsyncForIn node) {
+ openNode(node, "AsyncForIn");
+ }
+
+ visitSyncForIn(SyncForIn node) {
+ openNode(node, "ForIn");
node.visitChildren(this);
closeNode();
}
« no previous file with comments | « pkg/compiler/lib/src/tree/nodes.dart ('k') | pkg/compiler/lib/src/tree/unparser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698