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 5ecd80392f1b7042669e33bc8cab1a68e8a382e1..16977bdd990eaf19dfa0849d295a8d6b5b8d8f24 100644 |
--- a/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart |
+++ b/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart |
@@ -1710,6 +1710,21 @@ class AwaitTypeInformation extends TypeInformation { |
} |
} |
+class YieldTypeInformation extends TypeInformation { |
+ final ast.Node node; |
+ |
+ YieldTypeInformation(MemberTypeInformation context, this.node) |
+ : super(context); |
+ |
+ TypeMask computeType(InferrerEngine inferrer) => safeType(inferrer); |
+ |
+ String toString() => 'Yield'; |
+ |
+ accept(TypeInformationVisitor visitor) { |
+ return visitor.visitYieldTypeInformation(this); |
+ } |
+} |
+ |
abstract class TypeInformationVisitor<T> { |
T visitNarrowTypeInformation(NarrowTypeInformation info); |
T visitPhiElementTypeInformation(PhiElementTypeInformation info); |
@@ -1729,6 +1744,7 @@ abstract class TypeInformationVisitor<T> { |
T visitParameterTypeInformation(ParameterTypeInformation info); |
T visitClosureTypeInformation(ClosureTypeInformation info); |
T visitAwaitTypeInformation(AwaitTypeInformation info); |
+ T visitYieldTypeInformation(YieldTypeInformation info); |
} |
TypeMask _narrowType( |