Index: runtime/vm/ast.h |
=================================================================== |
--- runtime/vm/ast.h (revision 39381) |
+++ runtime/vm/ast.h (working copy) |
@@ -43,6 +43,7 @@ |
V(ConstructorCall) \ |
V(InstanceGetter) \ |
V(InstanceSetter) \ |
+ V(InitStaticField) \ |
V(StaticGetter) \ |
V(StaticSetter) \ |
V(NativeBody) \ |
@@ -1412,6 +1413,26 @@ |
}; |
+class InitStaticFieldNode : public AstNode { |
+ public: |
+ InitStaticFieldNode(intptr_t token_pos, const Field& field) |
+ : AstNode(token_pos), field_(field) { |
+ ASSERT(field_.IsZoneHandle()); |
+ } |
+ |
+ const Field& field() const { return field_; } |
+ |
+ virtual void VisitChildren(AstNodeVisitor* visitor) const { } |
+ |
+ DECLARE_COMMON_NODE_FUNCTIONS(InitStaticFieldNode); |
+ |
+ private: |
+ const Field& field_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(InitStaticFieldNode); |
+}; |
+ |
+ |
class StaticGetterNode : public AstNode { |
public: |
StaticGetterNode(intptr_t token_pos, |