| 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 888 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 899 | 899 |
| 900 | 900 |
| 901 class JumpNode : public AstNode { | 901 class JumpNode : public AstNode { |
| 902 public: | 902 public: |
| 903 JumpNode(intptr_t token_pos, | 903 JumpNode(intptr_t token_pos, |
| 904 Token::Kind kind, | 904 Token::Kind kind, |
| 905 SourceLabel* label) | 905 SourceLabel* label) |
| 906 : AstNode(token_pos), | 906 : AstNode(token_pos), |
| 907 kind_(kind), | 907 kind_(kind), |
| 908 label_(label), | 908 label_(label), |
| 909 inlined_finally_list_(NULL) { | 909 inlined_finally_list_() { |
| 910 ASSERT(label_ != NULL); | 910 ASSERT(label_ != NULL); |
| 911 ASSERT(kind_ == Token::kBREAK || kind_ == Token::kCONTINUE); | 911 ASSERT(kind_ == Token::kBREAK || kind_ == Token::kCONTINUE); |
| 912 if (kind_ == Token::kCONTINUE) { | 912 if (kind_ == Token::kCONTINUE) { |
| 913 label_->set_is_continue_target(true); | 913 label_->set_is_continue_target(true); |
| 914 } | 914 } |
| 915 } | 915 } |
| 916 | 916 |
| 917 SourceLabel* label() const { return label_; } | 917 SourceLabel* label() const { return label_; } |
| 918 Token::Kind kind() const { return kind_; } | 918 Token::Kind kind() const { return kind_; } |
| 919 | 919 |
| (...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1714 const LocalVariable& context_var_; | 1714 const LocalVariable& context_var_; |
| 1715 | 1715 |
| 1716 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode); | 1716 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode); |
| 1717 }; | 1717 }; |
| 1718 | 1718 |
| 1719 } // namespace dart | 1719 } // namespace dart |
| 1720 | 1720 |
| 1721 #undef DECLARE_COMMON_NODE_FUNCTIONS | 1721 #undef DECLARE_COMMON_NODE_FUNCTIONS |
| 1722 | 1722 |
| 1723 #endif // VM_AST_H_ | 1723 #endif // VM_AST_H_ |
| OLD | NEW |