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

Unified Diff: src/ast/prettyprinter.cc

Issue 2654423004: [async-functions] support await expressions in finally statements (Closed)
Patch Set: Get everything working (except possibly inspector tests) 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
Index: src/ast/prettyprinter.cc
diff --git a/src/ast/prettyprinter.cc b/src/ast/prettyprinter.cc
index 463ae26c4d77eeec9d440089224cba7a0f86fb6d..34ce03d7cbc72208a1d0faf25dae16c252aa4eff 100644
--- a/src/ast/prettyprinter.cc
+++ b/src/ast/prettyprinter.cc
@@ -377,6 +377,11 @@ void CallPrinter::VisitGetIterator(GetIterator* node) {
Print(")");
}
+void CallPrinter::VisitInternalVariable(InternalVariable* node) {
+ const char* name = node->name();
+ Print(name);
+}
+
void CallPrinter::VisitThisFunction(ThisFunction* node) {}
@@ -1203,6 +1208,10 @@ void AstPrinter::VisitGetIterator(GetIterator* node) {
Visit(node->iterable());
}
+void AstPrinter::VisitInternalVariable(InternalVariable* node) {
+ Print("%s", node->name());
+}
+
void AstPrinter::VisitThisFunction(ThisFunction* node) {
IndentedScope indent(this, "THIS-FUNCTION", node->position());
}

Powered by Google App Engine
This is Rietveld 408576698