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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 | 242 |
243 virtual void VisitChildren(AstNodeVisitor* visitor) const { } | 243 virtual void VisitChildren(AstNodeVisitor* visitor) const { } |
244 | 244 |
245 DECLARE_COMMON_NODE_FUNCTIONS(CloneContextNode); | 245 DECLARE_COMMON_NODE_FUNCTIONS(CloneContextNode); |
246 | 246 |
247 private: | 247 private: |
248 DISALLOW_COPY_AND_ASSIGN(CloneContextNode); | 248 DISALLOW_COPY_AND_ASSIGN(CloneContextNode); |
249 }; | 249 }; |
250 | 250 |
251 | 251 |
252 class ArgumentListNode : public AstNode { | 252 class ArgumentListNode : public AstNode { |
253 public: | 253 public: |
254 explicit ArgumentListNode(intptr_t token_index) | 254 explicit ArgumentListNode(intptr_t token_index) |
255 : AstNode(token_index), | 255 : AstNode(token_index), |
256 nodes_(4), | 256 nodes_(4), |
257 names_(Array::ZoneHandle()) { | 257 names_(Array::ZoneHandle()) { |
258 } | 258 } |
259 | 259 |
260 void VisitChildren(AstNodeVisitor* visitor) const; | 260 void VisitChildren(AstNodeVisitor* visitor) const; |
261 | 261 |
262 void Add(AstNode* node) { | 262 void Add(AstNode* node) { |
(...skipping 1653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1916 const LocalVariable& context_var_; | 1916 const LocalVariable& context_var_; |
1917 | 1917 |
1918 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode); | 1918 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode); |
1919 }; | 1919 }; |
1920 | 1920 |
1921 } // namespace dart | 1921 } // namespace dart |
1922 | 1922 |
1923 #undef DECLARE_COMMON_NODE_FUNCTIONS | 1923 #undef DECLARE_COMMON_NODE_FUNCTIONS |
1924 | 1924 |
1925 #endif // VM_AST_H_ | 1925 #endif // VM_AST_H_ |
OLD | NEW |