| 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 1838 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1849 SequenceNode* finally_block, | 1849 SequenceNode* finally_block, |
| 1850 intptr_t try_index) | 1850 intptr_t try_index) |
| 1851 : AstNode(token_pos), | 1851 : AstNode(token_pos), |
| 1852 try_block_(try_block), | 1852 try_block_(try_block), |
| 1853 context_var_(*context_var), | 1853 context_var_(*context_var), |
| 1854 catch_block_(catch_block), | 1854 catch_block_(catch_block), |
| 1855 finally_block_(finally_block), | 1855 finally_block_(finally_block), |
| 1856 try_index_(try_index) { | 1856 try_index_(try_index) { |
| 1857 ASSERT(try_block_ != NULL); | 1857 ASSERT(try_block_ != NULL); |
| 1858 ASSERT(context_var != NULL); | 1858 ASSERT(context_var != NULL); |
| 1859 ASSERT(catch_block_ != NULL || finally_block_ != NULL); | 1859 ASSERT(catch_block_ != NULL); |
| 1860 } | 1860 } |
| 1861 | 1861 |
| 1862 SequenceNode* try_block() const { return try_block_; } | 1862 SequenceNode* try_block() const { return try_block_; } |
| 1863 CatchClauseNode* catch_block() const { return catch_block_; } | 1863 CatchClauseNode* catch_block() const { return catch_block_; } |
| 1864 SequenceNode* finally_block() const { return finally_block_; } | 1864 SequenceNode* finally_block() const { return finally_block_; } |
| 1865 const LocalVariable& context_var() const { return context_var_; } | 1865 const LocalVariable& context_var() const { return context_var_; } |
| 1866 intptr_t try_index() const { return try_index_; } | 1866 intptr_t try_index() const { return try_index_; } |
| 1867 | 1867 |
| 1868 virtual void VisitChildren(AstNodeVisitor* visitor) const { | 1868 virtual void VisitChildren(AstNodeVisitor* visitor) const { |
| 1869 try_block_->Visit(visitor); | 1869 try_block_->Visit(visitor); |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1945 const intptr_t try_index_; | 1945 const intptr_t try_index_; |
| 1946 | 1946 |
| 1947 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode); | 1947 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode); |
| 1948 }; | 1948 }; |
| 1949 | 1949 |
| 1950 } // namespace dart | 1950 } // namespace dart |
| 1951 | 1951 |
| 1952 #undef DECLARE_COMMON_NODE_FUNCTIONS | 1952 #undef DECLARE_COMMON_NODE_FUNCTIONS |
| 1953 | 1953 |
| 1954 #endif // VM_AST_H_ | 1954 #endif // VM_AST_H_ |
| OLD | NEW |