| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef VM_AST_H_ | 5 #ifndef VM_AST_H_ |
| 6 #define VM_AST_H_ | 6 #define VM_AST_H_ |
| 7 | 7 |
| 8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
| 9 #include "vm/allocation.h" | 9 #include "vm/allocation.h" |
| 10 #include "vm/growable_array.h" | 10 #include "vm/growable_array.h" |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 const Function& function() const { return function_; } | 389 const Function& function() const { return function_; } |
| 390 AstNode* receiver() const { return receiver_; } | 390 AstNode* receiver() const { return receiver_; } |
| 391 LocalScope* scope() const { return scope_; } | 391 LocalScope* scope() const { return scope_; } |
| 392 | 392 |
| 393 virtual void VisitChildren(AstNodeVisitor* visitor) const { | 393 virtual void VisitChildren(AstNodeVisitor* visitor) const { |
| 394 if (receiver() != NULL) { | 394 if (receiver() != NULL) { |
| 395 receiver()->Visit(visitor); | 395 receiver()->Visit(visitor); |
| 396 } | 396 } |
| 397 } | 397 } |
| 398 | 398 |
| 399 virtual const Instance* EvalConstExpr() const; |
| 400 |
| 399 DECLARE_COMMON_NODE_FUNCTIONS(ClosureNode); | 401 DECLARE_COMMON_NODE_FUNCTIONS(ClosureNode); |
| 400 | 402 |
| 401 private: | 403 private: |
| 402 const Function& function_; | 404 const Function& function_; |
| 403 AstNode* receiver_; | 405 AstNode* receiver_; |
| 404 LocalScope* scope_; | 406 LocalScope* scope_; |
| 405 | 407 |
| 406 DISALLOW_IMPLICIT_CONSTRUCTORS(ClosureNode); | 408 DISALLOW_IMPLICIT_CONSTRUCTORS(ClosureNode); |
| 407 }; | 409 }; |
| 408 | 410 |
| (...skipping 1240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1649 const LocalVariable& context_var_; | 1651 const LocalVariable& context_var_; |
| 1650 | 1652 |
| 1651 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode); | 1653 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode); |
| 1652 }; | 1654 }; |
| 1653 | 1655 |
| 1654 } // namespace dart | 1656 } // namespace dart |
| 1655 | 1657 |
| 1656 #undef DECLARE_COMMON_NODE_FUNCTIONS | 1658 #undef DECLARE_COMMON_NODE_FUNCTIONS |
| 1657 | 1659 |
| 1658 #endif // VM_AST_H_ | 1660 #endif // VM_AST_H_ |
| OLD | NEW |