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

Unified Diff: pkg/kernel/testcases/closures/closure_in_constructor.dart.expect

Issue 2991853002: Fix duplicate context creation when closures appear in initializers. (Closed)
Patch Set: Created 3 years, 5 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/kernel/testcases/closures/closure_in_constructor.dart.expect
diff --git a/pkg/kernel/testcases/closures/closure_in_constructor.dart.expect b/pkg/kernel/testcases/closures/closure_in_constructor.dart.expect
index 2e3a64712f01c3a6e34ecff2aec190e4a101a4b2..d83238b4c63708cef3857106d56f50738f7eefec 100644
--- a/pkg/kernel/testcases/closures/closure_in_constructor.dart.expect
+++ b/pkg/kernel/testcases/closures/closure_in_constructor.dart.expect
@@ -11,9 +11,10 @@ class C1 extends core::Object {
class C2 extends core::Object {
Dmitry Stefantsov 2017/07/28 12:36:16 If I'm getting this right, here is the Dart code f
sjindel 2017/07/31 12:06:21 Done.
field dynamic x = null;
constructor •(dynamic y) → void
- : final Vector #context = MakeVector(2), dynamic #t2 = #context[1] = y, super core::Object::•() {
- final Vector #context = MakeVector(2);
- #context[1] = y;
+ : final Vector #context = MakeVector(2), this self::C2::#redir(y, #context)
+ ;
+ constructor #redir(dynamic y, final Vector #context) → void
+ : dynamic #t2 = #context[1] = y, super core::Object::•() {
this.x = MakeClosure<() → dynamic>(self::closure#C2#function#function, #context);
}
}

Powered by Google App Engine
This is Rietveld 408576698