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

Unified Diff: runtime/vm/ast.h

Issue 2683973002: Handle type literals correctly with deferred loading and await. (Closed)
Patch Set: add comment Created 3 years, 10 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/ast_transformer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/ast.h
diff --git a/runtime/vm/ast.h b/runtime/vm/ast.h
index ca758563d230687bdae37a0cf3fed89061378328..c99b6cb860dc85b5ea982e6a5c2a07a91a752af2 100644
--- a/runtime/vm/ast.h
+++ b/runtime/vm/ast.h
@@ -443,8 +443,12 @@ class LiteralNode : public AstNode {
class TypeNode : public AstNode {
public:
- TypeNode(TokenPosition token_pos, const AbstractType& type)
- : AstNode(token_pos), type_(type) {
+ TypeNode(TokenPosition token_pos,
+ const AbstractType& type,
+ bool is_deferred_reference = false)
+ : AstNode(token_pos),
+ type_(type),
+ is_deferred_reference_(is_deferred_reference) {
ASSERT(type_.IsZoneHandle());
ASSERT(!type_.IsNull());
ASSERT(type_.IsFinalized());
@@ -466,10 +470,14 @@ class TypeNode : public AstNode {
virtual void VisitChildren(AstNodeVisitor* visitor) const {}
+ bool is_deferred_reference() const { return is_deferred_reference_; }
+ void set_is_deferred_reference(bool value) { is_deferred_reference_ = value; }
+
DECLARE_COMMON_NODE_FUNCTIONS(TypeNode);
private:
const AbstractType& type_;
+ bool is_deferred_reference_;
DISALLOW_IMPLICIT_CONSTRUCTORS(TypeNode);
};
« no previous file with comments | « no previous file | runtime/vm/ast_transformer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698