| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 "vm/allocation.h" | 8 #include "vm/allocation.h" |
| 9 #include "vm/assert.h" | 9 #include "vm/assert.h" |
| 10 #include "vm/growable_array.h" | 10 #include "vm/growable_array.h" |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 }; | 200 }; |
| 201 | 201 |
| 202 | 202 |
| 203 class SequenceNode : public AstNode { | 203 class SequenceNode : public AstNode { |
| 204 public: | 204 public: |
| 205 SequenceNode(intptr_t token_index, LocalScope* scope) | 205 SequenceNode(intptr_t token_index, LocalScope* scope) |
| 206 : AstNode(token_index), | 206 : AstNode(token_index), |
| 207 scope_(scope), | 207 scope_(scope), |
| 208 nodes_(4), | 208 nodes_(4), |
| 209 label_(NULL) { | 209 label_(NULL) { |
| 210 ASSERT(scope_ != NULL); | |
| 211 } | 210 } |
| 212 | 211 |
| 213 LocalScope* scope() const { return scope_; } | 212 LocalScope* scope() const { return scope_; } |
| 214 | 213 |
| 215 SourceLabel* label() const { return label_; } | 214 SourceLabel* label() const { return label_; } |
| 216 void set_label(SourceLabel* value) { label_ = value; } | 215 void set_label(SourceLabel* value) { label_ = value; } |
| 217 | 216 |
| 218 void VisitChildren(AstNodeVisitor* visitor) const; | 217 void VisitChildren(AstNodeVisitor* visitor) const; |
| 219 | 218 |
| 220 void Add(AstNode* node) { nodes_.Add(node); } | 219 void Add(AstNode* node) { nodes_.Add(node); } |
| (...skipping 1696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1917 const LocalVariable& context_var_; | 1916 const LocalVariable& context_var_; |
| 1918 | 1917 |
| 1919 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode); | 1918 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode); |
| 1920 }; | 1919 }; |
| 1921 | 1920 |
| 1922 } // namespace dart | 1921 } // namespace dart |
| 1923 | 1922 |
| 1924 #undef DECLARE_COMMON_NODE_FUNCTIONS | 1923 #undef DECLARE_COMMON_NODE_FUNCTIONS |
| 1925 | 1924 |
| 1926 #endif // VM_AST_H_ | 1925 #endif // VM_AST_H_ |
| OLD | NEW |