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

Unified Diff: src/ast/prettyprinter.cc

Issue 2654423004: [async-functions] support await expressions in finally statements (Closed)
Patch Set: I'd like to build with -Wunused-variables locally, but how!? 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-traversal-visitor.h ('k') | src/ast/scopes.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 950596722a842f40f23f2a8e941aed611d43c894..7dffa45585f89834320e46b2c86b891fa9a327db 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());
}
« no previous file with comments | « src/ast/ast-traversal-visitor.h ('k') | src/ast/scopes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698