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

Unified Diff: pkg/compiler/lib/src/inferrer/inferrer_engine.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
« no previous file with comments | « pkg/compiler/lib/src/inferrer/builder.dart ('k') | pkg/compiler/lib/src/inferrer/node_tracer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/inferrer/inferrer_engine.dart
diff --git a/pkg/compiler/lib/src/inferrer/inferrer_engine.dart b/pkg/compiler/lib/src/inferrer/inferrer_engine.dart
index d42541c6c991d526ba4c03afb89b64823530b954..fa5a147e666eafada8ea0229281546a2826fb062 100644
--- a/pkg/compiler/lib/src/inferrer/inferrer_engine.dart
+++ b/pkg/compiler/lib/src/inferrer/inferrer_engine.dart
@@ -919,6 +919,18 @@ class InferrerEngine {
}
/**
+ * Registers a call to yield with an expression of type [argumentType] as
+ * argument.
+ */
+ TypeInformation registerYield(ast.Node node, TypeInformation argument) {
+ YieldTypeInformation info =
+ new YieldTypeInformation(types.currentMember, node);
+ info.addAssignment(argument);
+ types.allocatedTypes.add(info);
+ return info;
+ }
+
+ /**
* Registers that [caller] calls [closure] with [arguments].
*
* [sideEffects] will be updated to incorporate the potential
« no previous file with comments | « pkg/compiler/lib/src/inferrer/builder.dart ('k') | pkg/compiler/lib/src/inferrer/node_tracer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698