Index: pkg/compiler/lib/src/inferrer/type_graph_nodes.dart |
diff --git a/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart b/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart |
index 6a9610dd3a04fe90f936cc68af39cbb1fd851451..7b673d028cdb8f6ab340e9e680cdda66cf7350a4 100644 |
--- a/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart |
+++ b/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart |
@@ -1518,6 +1518,22 @@ abstract class TracedTypeInformation implements TypeInformation { |
} |
} |
+class AwaitTypeInformation extends TypeInformation { |
+ final ast.Node node; |
+ |
+ AwaitTypeInformation(MemberTypeInformation context, this.node) |
+ : super(context); |
+ |
+ // TODO(22894): Compute a better type here. |
+ TypeMask computeType(TypeGraphInferrerEngine inferrer) => safeType(inferrer); |
+ |
+ String toString() => 'Await'; |
+ |
+ accept(TypeInformationVisitor visitor) { |
+ return visitor.visitAwaitTypeInformation(this); |
+ } |
+} |
+ |
abstract class TypeInformationVisitor<T> { |
T visitNarrowTypeInformation(NarrowTypeInformation info); |
T visitPhiElementTypeInformation(PhiElementTypeInformation info); |
@@ -1535,4 +1551,5 @@ abstract class TypeInformationVisitor<T> { |
T visitMemberTypeInformation(MemberTypeInformation info); |
T visitParameterTypeInformation(ParameterTypeInformation info); |
T visitClosureTypeInformation(ClosureTypeInformation info); |
+ T visitAwaitTypeInformation(AwaitTypeInformation info); |
} |