| OLD | NEW |
| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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) { | 67 void AstExpressionRewriter::VisitImportDeclaration(ImportDeclaration* node) { |
| 68 // Not visiting `proxy_`. | 68 // Not visiting `proxy_`. |
| 69 NOTHING(); | 69 NOTHING(); |
| 70 } | 70 } |
| 71 | 71 |
| 72 | 72 |
| 73 void AstExpressionRewriter::VisitExportDeclaration(ExportDeclaration* node) { | |
| 74 // Not visiting `proxy_`. | |
| 75 NOTHING(); | |
| 76 } | |
| 77 | |
| 78 | |
| 79 void AstExpressionRewriter::VisitBlock(Block* node) { | 73 void AstExpressionRewriter::VisitBlock(Block* node) { |
| 80 VisitStatements(node->statements()); | 74 VisitStatements(node->statements()); |
| 81 } | 75 } |
| 82 | 76 |
| 83 | 77 |
| 84 void AstExpressionRewriter::VisitExpressionStatement( | 78 void AstExpressionRewriter::VisitExpressionStatement( |
| 85 ExpressionStatement* node) { | 79 ExpressionStatement* node) { |
| 86 AST_REWRITE_PROPERTY(Expression, node, expression); | 80 AST_REWRITE_PROPERTY(Expression, node, expression); |
| 87 } | 81 } |
| 88 | 82 |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 | 392 |
| 399 void AstExpressionRewriter::VisitRewritableExpression( | 393 void AstExpressionRewriter::VisitRewritableExpression( |
| 400 RewritableExpression* node) { | 394 RewritableExpression* node) { |
| 401 REWRITE_THIS(node); | 395 REWRITE_THIS(node); |
| 402 AST_REWRITE(Expression, node->expression(), node->Rewrite(replacement)); | 396 AST_REWRITE(Expression, node->expression(), node->Rewrite(replacement)); |
| 403 } | 397 } |
| 404 | 398 |
| 405 | 399 |
| 406 } // namespace internal | 400 } // namespace internal |
| 407 } // namespace v8 | 401 } // namespace v8 |
| OLD | NEW |