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

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

Issue 2935223003: Update expectations for closure conversion tests (Closed)
Patch Set: Created 3 years, 6 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 C extends core::Object { 5 class C extends core::Object {
6 field dynamic t; 6 field dynamic t;
7 constructor foo(dynamic f) → void 7 constructor foo(dynamic f) → void
8 : self::C::t = let final Vector #context = MakeVector(2) in let dynamic #t1 = #context[1] = f in MakeClosure<() → dynamic>(self::closure#C#foo#function, #co ntext), super core::Object::•() { 8 : self::C::t = let final Vector #context = MakeVector(2) in let dynamic #t1 = #context[1] = f in MakeClosure<() → dynamic>(self::closure#C#foo#function, #co ntext), super core::Object::•() {
9 final Vector #context = MakeVector(2); 9 final Vector #context = MakeVector(2);
10 #context[1] = f; 10 #context[1] = f;
11 core::print(1); 11 core::print(1);
12 } 12 }
13 } 13 }
14 static method main() → dynamic { 14 static method main() → dynamic {
15 core::print(0); 15 core::print(0);
16 dynamic c = new self::C::foo(MakeClosure<() → dynamic>(self::closure#main#func tion, null)); 16 dynamic c = new self::C::foo(MakeClosure<() → void>(self::closure#main#functio n, null));
17 core::print(2); 17 core::print(2);
18 c.t(); 18 c.t();
19 core::print(3); 19 core::print(3);
20 } 20 }
21 static method closure#C#foo#function(Vector #contextParameter) → dynamic { 21 static method closure#C#foo#function(Vector #contextParameter) → dynamic {
22 return (#contextParameter[1]).call(); 22 return (#contextParameter[1]).call();
23 } 23 }
24 static method closure#main#function(Vector #contextParameter) → dynamic { 24 static method closure#main#function(Vector #contextParameter) → void {
25 return core::print("hest"); 25 return core::print("hest");
26 } 26 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698