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

Unified Diff: src/ast/prettyprinter.cc

Issue 2622833002: WIP [esnext] implement async iteration proposal (Closed)
Patch Set: simplify AsyncIteratorValueUnwrap Created 3 years, 11 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 | « src/ast/ast-types.cc ('k') | src/bailout-reason.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/prettyprinter.cc
diff --git a/src/ast/prettyprinter.cc b/src/ast/prettyprinter.cc
index 463ae26c4d77eeec9d440089224cba7a0f86fb6d..c288ee7e8ca50f2e923a47fa72949e8c62f384c8 100644
--- a/src/ast/prettyprinter.cc
+++ b/src/ast/prettyprinter.cc
@@ -1199,7 +1199,9 @@ void AstPrinter::VisitEmptyParentheses(EmptyParentheses* node) {
}
void AstPrinter::VisitGetIterator(GetIterator* node) {
- IndentedScope indent(this, "GET-ITERATOR", node->position());
+ const char* desc = node->hint() == GetIterator::kAsync ? "GET-ASYNC-ITERATOR"
+ : "GET-ITERATOR";
+ IndentedScope indent(this, desc, node->position());
Visit(node->iterable());
}
« no previous file with comments | « src/ast/ast-types.cc ('k') | src/bailout-reason.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698