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

Unified Diff: pkg/kernel/testcases/closures_initializers/initializers.dart.expect

Issue 2974673002: Revert "Fix closure conversion in field and local initializers." (Closed)
Patch Set: Revert "Revert "Fix closure conversion in field and local initializers."" 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_initializers/initializers.dart.expect
diff --git a/pkg/kernel/testcases/closures_initializers/initializers.dart.expect b/pkg/kernel/testcases/closures_initializers/initializers.dart.expect
new file mode 100644
index 0000000000000000000000000000000000000000..d4eb3404d6d96f5ddab5d35e7dc5cc6d868622cf
--- /dev/null
+++ b/pkg/kernel/testcases/closures_initializers/initializers.dart.expect
@@ -0,0 +1,35 @@
+library;
+import self as self;
+import "dart:core" as core;
+
+class X extends core::Object {
+ constructor •() → void
+ : super core::Object::•()
+ ;
+}
+class A extends core::Object {
+ field self::X foo;
+ constructor •(self::X i) → void
+ : self::A::foo = let final Vector #context = MakeVector(2) in let dynamic #t1 = #context[1] = i in (MakeClosure<() → dynamic>(self::closure#A#function#function, #context)).call(), super core::Object::•()
+ ;
+}
+class B extends core::Object {
+ field self::X foo = null;
+ constructor named(self::X foo) → void
+ : super core::Object::•() {}
+ constructor •(self::X foo) → void
+ : dynamic extracted#0 = let final Vector #context = MakeVector(2) in let dynamic #t2 = #context[1] = foo in (MakeClosure<() → dynamic>(self::closure#B#function#function, #context)).call(), this self::B::named(extracted#0)
+ ;
+}
+static method main() → dynamic {
+ self::A a = new self::A::•(new self::X::•());
+ a.foo;
+ self::B b = new self::B::•(new self::X::•());
+ b.foo;
+}
+static method closure#A#function#function(Vector #contextParameter) → dynamic {
+ return #contextParameter[1];
+}
+static method closure#B#function#function(Vector #contextParameter) → dynamic {
+ return #contextParameter[1];
+}

Powered by Google App Engine
This is Rietveld 408576698