Index: runtime/vm/kernel.h |
diff --git a/runtime/vm/kernel.h b/runtime/vm/kernel.h |
index 1a453cc18add12d135266422887ed477318abde0..ec43b8c3fbadd2a9f71bdb85153259d447801db3 100644 |
--- a/runtime/vm/kernel.h |
+++ b/runtime/vm/kernel.h |
@@ -19,6 +19,7 @@ |
M(InvalidType) \ |
M(DynamicType) \ |
M(VoidType) \ |
+ M(BottomType) \ |
M(InterfaceType) \ |
M(FunctionType) \ |
M(TypeParameterType) \ |
@@ -2681,6 +2682,24 @@ class VoidType : public DartType { |
}; |
+class BottomType : public DartType { |
+ public: |
+ static BottomType* ReadFrom(Reader* reader); |
+ |
+ virtual ~BottomType(); |
+ |
+ DEFINE_CASTING_OPERATIONS(BottomType); |
+ |
+ virtual void AcceptDartTypeVisitor(DartTypeVisitor* visitor); |
+ virtual void VisitChildren(Visitor* visitor); |
+ |
+ private: |
+ BottomType() {} |
+ |
+ DISALLOW_COPY_AND_ASSIGN(BottomType); |
+}; |
+ |
+ |
class InterfaceType : public DartType { |
public: |
static InterfaceType* ReadFrom(Reader* reader); |
@@ -3133,6 +3152,7 @@ class DartTypeVisitor { |
VisitDefaultDartType(node); |
} |
virtual void VisitVoidType(VoidType* node) { VisitDefaultDartType(node); } |
+ virtual void VisitBottomType(BottomType* node) { VisitDefaultDartType(node); } |
virtual void VisitInterfaceType(InterfaceType* node) { |
VisitDefaultDartType(node); |
} |