| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |