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

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

Issue 2108193003: [modules] AST and parser rework. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@anonymous-declarations
Patch Set: Rebase. Created 4 years, 5 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.cc ('k') | src/ast/ast-literal-reindexer.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/ast/ast.h" 5 #include "src/ast/ast.h"
6 #include "src/ast/ast-expression-rewriter.h" 6 #include "src/ast/ast-expression-rewriter.h"
7 7
8 namespace v8 { 8 namespace v8 {
9 namespace internal { 9 namespace internal {
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 } 57 }
58 58
59 59
60 void AstExpressionRewriter::VisitFunctionDeclaration( 60 void AstExpressionRewriter::VisitFunctionDeclaration(
61 FunctionDeclaration* node) { 61 FunctionDeclaration* node) {
62 // Not visiting `proxy_`. 62 // Not visiting `proxy_`.
63 AST_REWRITE_PROPERTY(FunctionLiteral, node, fun); 63 AST_REWRITE_PROPERTY(FunctionLiteral, node, fun);
64 } 64 }
65 65
66 66
67 void AstExpressionRewriter::VisitImportDeclaration(ImportDeclaration* node) {
68 // Not visiting `proxy_`.
69 NOTHING();
70 }
71
72
73 void AstExpressionRewriter::VisitBlock(Block* node) { 67 void AstExpressionRewriter::VisitBlock(Block* node) {
74 VisitStatements(node->statements()); 68 VisitStatements(node->statements());
75 } 69 }
76 70
77 71
78 void AstExpressionRewriter::VisitExpressionStatement( 72 void AstExpressionRewriter::VisitExpressionStatement(
79 ExpressionStatement* node) { 73 ExpressionStatement* node) {
80 AST_REWRITE_PROPERTY(Expression, node, expression); 74 AST_REWRITE_PROPERTY(Expression, node, expression);
81 } 75 }
82 76
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 386
393 void AstExpressionRewriter::VisitRewritableExpression( 387 void AstExpressionRewriter::VisitRewritableExpression(
394 RewritableExpression* node) { 388 RewritableExpression* node) {
395 REWRITE_THIS(node); 389 REWRITE_THIS(node);
396 AST_REWRITE(Expression, node->expression(), node->Rewrite(replacement)); 390 AST_REWRITE(Expression, node->expression(), node->Rewrite(replacement));
397 } 391 }
398 392
399 393
400 } // namespace internal 394 } // namespace internal
401 } // namespace v8 395 } // namespace v8
OLDNEW
« no previous file with comments | « src/ast/ast.cc ('k') | src/ast/ast-literal-reindexer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698