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

Side by Side Diff: src/ast/ast-expression-visitor.cc

Issue 1968753004: [cleanup] Split ForOf and ForIn AST nodes apart as they share little (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 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 unified diff | Download patch
« no previous file with comments | « src/ast/ast-expression-rewriter.cc ('k') | src/ast/prettyprinter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/ast/ast-expression-visitor.h" 7 #include "src/ast/ast-expression-visitor.h"
8 8
9 #include "src/ast/ast.h" 9 #include "src/ast/ast.h"
10 #include "src/ast/scopes.h" 10 #include "src/ast/scopes.h"
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 } 163 }
164 164
165 165
166 void AstExpressionVisitor::VisitForInStatement(ForInStatement* stmt) { 166 void AstExpressionVisitor::VisitForInStatement(ForInStatement* stmt) {
167 RECURSE(Visit(stmt->enumerable())); 167 RECURSE(Visit(stmt->enumerable()));
168 RECURSE(Visit(stmt->body())); 168 RECURSE(Visit(stmt->body()));
169 } 169 }
170 170
171 171
172 void AstExpressionVisitor::VisitForOfStatement(ForOfStatement* stmt) { 172 void AstExpressionVisitor::VisitForOfStatement(ForOfStatement* stmt) {
173 RECURSE(Visit(stmt->iterable()));
174 RECURSE(Visit(stmt->assign_iterator())); 173 RECURSE(Visit(stmt->assign_iterator()));
175 RECURSE(Visit(stmt->next_result())); 174 RECURSE(Visit(stmt->next_result()));
176 RECURSE(Visit(stmt->result_done())); 175 RECURSE(Visit(stmt->result_done()));
177 RECURSE(Visit(stmt->assign_each())); 176 RECURSE(Visit(stmt->assign_each()));
178 RECURSE(Visit(stmt->body())); 177 RECURSE(Visit(stmt->body()));
179 } 178 }
180 179
181 180
182 void AstExpressionVisitor::VisitTryCatchStatement(TryCatchStatement* stmt) { 181 void AstExpressionVisitor::VisitTryCatchStatement(TryCatchStatement* stmt) {
183 RECURSE(Visit(stmt->try_block())); 182 RECURSE(Visit(stmt->try_block()));
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 400
402 void AstExpressionVisitor::VisitRewritableExpression( 401 void AstExpressionVisitor::VisitRewritableExpression(
403 RewritableExpression* expr) { 402 RewritableExpression* expr) {
404 VisitExpression(expr); 403 VisitExpression(expr);
405 RECURSE(Visit(expr->expression())); 404 RECURSE(Visit(expr->expression()));
406 } 405 }
407 406
408 407
409 } // namespace internal 408 } // namespace internal
410 } // namespace v8 409 } // namespace v8
OLDNEW
« no previous file with comments | « src/ast/ast-expression-rewriter.cc ('k') | src/ast/prettyprinter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698