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

Unified Diff: src/ast/ast-expression-rewriter.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.cc ('k') | src/ast/ast-numbering.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/ast-expression-rewriter.cc
diff --git a/src/ast/ast-expression-rewriter.cc b/src/ast/ast-expression-rewriter.cc
index f46e21b410ad779a52a75f28e298f08f18d05231..ed9229c7c92fbf531e8f651c5ca305a5157ef714 100644
--- a/src/ast/ast-expression-rewriter.cc
+++ b/src/ast/ast-expression-rewriter.cc
@@ -187,6 +187,8 @@ void AstExpressionRewriter::VisitDebuggerStatement(DebuggerStatement* node) {
void AstExpressionRewriter::VisitFunctionLiteral(FunctionLiteral* node) {
REWRITE_THIS(node);
VisitDeclarations(node->scope()->declarations());
+ Block* init_block = node->parameter_init_block();
+ if (init_block != nullptr) VisitBlock(init_block);
ZoneList<Statement*>* body = node->body();
if (body != nullptr) VisitStatements(body);
}
@@ -268,7 +270,6 @@ void AstExpressionRewriter::VisitAssignment(Assignment* node) {
void AstExpressionRewriter::VisitYield(Yield* node) {
REWRITE_THIS(node);
- AST_REWRITE_PROPERTY(Expression, node, generator_object);
AST_REWRITE_PROPERTY(Expression, node, expression);
}
@@ -377,6 +378,10 @@ void AstExpressionRewriter::VisitGetIterator(GetIterator* node) {
AST_REWRITE_PROPERTY(Expression, node, iterable);
}
+void AstExpressionRewriter::VisitInternalVariable(InternalVariable* node) {
+ NOTHING();
+}
+
void AstExpressionRewriter::VisitDoExpression(DoExpression* node) {
REWRITE_THIS(node);
AST_REWRITE_PROPERTY(Block, node, block);
« no previous file with comments | « src/ast/ast.cc ('k') | src/ast/ast-numbering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698