Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: runtime/vm/ast.h

Issue 1455213002: Handle potentially const interpolation (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | runtime/vm/ast.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/ast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698