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

Unified Diff: pkg/compiler/lib/src/inferrer/node_tracer.dart

Issue 2811993006: dart2js: type analysis: yield escapes its argument (Closed)
Patch Set: comment Created 3 years, 8 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
Index: pkg/compiler/lib/src/inferrer/node_tracer.dart
diff --git a/pkg/compiler/lib/src/inferrer/node_tracer.dart b/pkg/compiler/lib/src/inferrer/node_tracer.dart
index f3fdc407c644b5c2e71587e0ccf267ed6d74fbc4..e296e9f5f04fa67bc41173940ba086931b30ac57 100644
--- a/pkg/compiler/lib/src/inferrer/node_tracer.dart
+++ b/pkg/compiler/lib/src/inferrer/node_tracer.dart
@@ -157,6 +157,14 @@ abstract class TracerVisitor implements TypeInformationVisitor {
bailout("Passed through await");
}
+ void visitYieldTypeInformation(YieldTypeInformation info) {
+ // TODO(29344): The enclosing sync*/async/async* method could have a
+ // tracable TypeInformation for the Iterable / Future / Stream with an
+ // element TypeInformation. Then YieldTypeInformation could connect the
+ // source type information to the tracable element.
+ bailout("Passed through yield");
+ }
+
void visitNarrowTypeInformation(NarrowTypeInformation info) {
addNewEscapeInformation(info);
}
« no previous file with comments | « pkg/compiler/lib/src/inferrer/inferrer_engine.dart ('k') | pkg/compiler/lib/src/inferrer/type_graph_dump.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698