| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef V8_AST_AST_TRAVERSAL_VISITOR_H_ | 5 #ifndef V8_AST_AST_TRAVERSAL_VISITOR_H_ |
| 6 #define V8_AST_AST_TRAVERSAL_VISITOR_H_ | 6 #define V8_AST_AST_TRAVERSAL_VISITOR_H_ |
| 7 | 7 |
| 8 #include "src/ast/ast.h" | 8 #include "src/ast/ast.h" |
| 9 #include "src/ast/scopes.h" | 9 #include "src/ast/scopes.h" |
| 10 | 10 |
| (...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 464 RECURSE_EXPRESSION(Visit(expr->expression())); | 464 RECURSE_EXPRESSION(Visit(expr->expression())); |
| 465 } | 465 } |
| 466 | 466 |
| 467 template <class Subclass> | 467 template <class Subclass> |
| 468 void AstTraversalVisitor<Subclass>::VisitEmptyParentheses( | 468 void AstTraversalVisitor<Subclass>::VisitEmptyParentheses( |
| 469 EmptyParentheses* expr) { | 469 EmptyParentheses* expr) { |
| 470 PROCESS_EXPRESSION(expr); | 470 PROCESS_EXPRESSION(expr); |
| 471 } | 471 } |
| 472 | 472 |
| 473 template <class Subclass> | 473 template <class Subclass> |
| 474 void AstTraversalVisitor<Subclass>::VisitGetIterator(GetIterator* expr) { |
| 475 PROCESS_EXPRESSION(expr); |
| 476 RECURSE_EXPRESSION(Visit(expr->iterable())); |
| 477 } |
| 478 |
| 479 template <class Subclass> |
| 474 void AstTraversalVisitor<Subclass>::VisitSuperPropertyReference( | 480 void AstTraversalVisitor<Subclass>::VisitSuperPropertyReference( |
| 475 SuperPropertyReference* expr) { | 481 SuperPropertyReference* expr) { |
| 476 PROCESS_EXPRESSION(expr); | 482 PROCESS_EXPRESSION(expr); |
| 477 RECURSE_EXPRESSION(VisitVariableProxy(expr->this_var())); | 483 RECURSE_EXPRESSION(VisitVariableProxy(expr->this_var())); |
| 478 RECURSE_EXPRESSION(Visit(expr->home_object())); | 484 RECURSE_EXPRESSION(Visit(expr->home_object())); |
| 479 } | 485 } |
| 480 | 486 |
| 481 template <class Subclass> | 487 template <class Subclass> |
| 482 void AstTraversalVisitor<Subclass>::VisitSuperCallReference( | 488 void AstTraversalVisitor<Subclass>::VisitSuperCallReference( |
| 483 SuperCallReference* expr) { | 489 SuperCallReference* expr) { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 496 | 502 |
| 497 #undef PROCESS_NODE | 503 #undef PROCESS_NODE |
| 498 #undef PROCESS_EXPRESSION | 504 #undef PROCESS_EXPRESSION |
| 499 #undef RECURSE_EXPRESSION | 505 #undef RECURSE_EXPRESSION |
| 500 #undef RECURSE | 506 #undef RECURSE |
| 501 | 507 |
| 502 } // namespace internal | 508 } // namespace internal |
| 503 } // namespace v8 | 509 } // namespace v8 |
| 504 | 510 |
| 505 #endif // V8_AST_AST_TRAVERSAL_VISITOR_H_ | 511 #endif // V8_AST_AST_TRAVERSAL_VISITOR_H_ |
| OLD | NEW |