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

Side by Side Diff: pkg/kernel/testcases/closures/contexts_in_field_initializers.dart.expect

Issue 3007623002: Fix many bugs with closure conversion in checked mode. (Closed)
Patch Set: Review comments Created 3 years, 3 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 unified diff | Download patch
OLDNEW
1 library; 1 library;
2 import self as self; 2 import self as self;
3 import "dart:core" as core; 3 import "dart:core" as core;
4 4
5 class X extends core::Object { 5 class X extends core::Object {
6 default constructor •() → void 6 default constructor •() → void
7 : super core::Object::•() 7 : super core::Object::•()
8 ; 8 ;
9 } 9 }
10 class A extends core::Object { 10 class A extends core::Object {
11 field self::X x; 11 field self::X x;
12 constructor •(self::X x) → void 12 constructor •(self::X x) → void
13 : self::A::x = x, super core::Object::•() {} 13 : self::A::x = x, super core::Object::•() {}
14 } 14 }
15 class B extends core::Object { 15 class B extends core::Object {
16 field self::X x; 16 field self::X x;
17 constructor •(self::X x) → void 17 constructor •(self::X x) → void
18 : final Vector #context = MakeVector(3), this self::B::#redir(x, #context) 18 : final dynamic #context = MakeVector(3), this self::B::#redir(x, #context)
19 ; 19 ;
20 constructor #redir(self::X x, final Vector #context) → void 20 constructor #redir(self::X x, final dynamic #context) → void
21 : dynamic #t1 = #context[2] = x, self::B::x = #context[2], super core::Objec t::•() { 21 : dynamic #t1 = #context[2] = x, self::B::x = #context[2], super core::Objec t::•() {
22 final () → dynamic fn = MakeClosure<() → dynamic>(self::closure#B#function#f n, #context); 22 final () → dynamic fn = MakeClosure<() → dynamic>(self::closure#B#function#f n, #context);
23 fn.call(); 23 fn.call();
24 } 24 }
25 } 25 }
26 static method main() → dynamic { 26 static method main() → dynamic {
27 self::A a = new self::A::•(new self::X::•()); 27 self::A a = new self::A::•(new self::X::•());
28 self::B b = new self::B::•(new self::X::•()); 28 self::B b = new self::B::•(new self::X::•());
29 } 29 }
30 static method closure#B#function#fn(Vector #contextParameter) → dynamic { 30 static method closure#B#function#fn(dynamic #contextParameter) → dynamic {
31 core::print(#contextParameter[2]); 31 core::print(#contextParameter[2]);
32 } 32 }
OLDNEW
« no previous file with comments | « pkg/kernel/testcases/closures/closures.dart.expect ('k') | pkg/kernel/testcases/closures/field.dart.expect » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698