| 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 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 public: | 404 public: |
| 405 StringInterpolateNode(intptr_t token_pos, ArrayNode* value) | 405 StringInterpolateNode(intptr_t token_pos, ArrayNode* value) |
| 406 : AstNode(token_pos), value_(value) { } | 406 : AstNode(token_pos), value_(value) { } |
| 407 | 407 |
| 408 virtual void VisitChildren(AstNodeVisitor* visitor) const { | 408 virtual void VisitChildren(AstNodeVisitor* visitor) const { |
| 409 value_->Visit(visitor); | 409 value_->Visit(visitor); |
| 410 } | 410 } |
| 411 | 411 |
| 412 ArrayNode* value() const { return value_; } | 412 ArrayNode* value() const { return value_; } |
| 413 | 413 |
| 414 virtual bool IsPotentiallyConst() const; |
| 415 |
| 414 DECLARE_COMMON_NODE_FUNCTIONS(StringInterpolateNode); | 416 DECLARE_COMMON_NODE_FUNCTIONS(StringInterpolateNode); |
| 415 | 417 |
| 416 private: | 418 private: |
| 417 ArrayNode* value_; | 419 ArrayNode* value_; |
| 418 | 420 |
| 419 DISALLOW_IMPLICIT_CONSTRUCTORS(StringInterpolateNode); | 421 DISALLOW_IMPLICIT_CONSTRUCTORS(StringInterpolateNode); |
| 420 }; | 422 }; |
| 421 | 423 |
| 422 | 424 |
| 423 class LiteralNode : public AstNode { | 425 class LiteralNode : public AstNode { |
| (...skipping 1594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2018 const intptr_t try_index_; | 2020 const intptr_t try_index_; |
| 2019 | 2021 |
| 2020 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode); | 2022 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode); |
| 2021 }; | 2023 }; |
| 2022 | 2024 |
| 2023 } // namespace dart | 2025 } // namespace dart |
| 2024 | 2026 |
| 2025 #undef DECLARE_COMMON_NODE_FUNCTIONS | 2027 #undef DECLARE_COMMON_NODE_FUNCTIONS |
| 2026 | 2028 |
| 2027 #endif // VM_AST_H_ | 2029 #endif // VM_AST_H_ |
| OLD | NEW |