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

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

Issue 2808443002: Switch to Fasta in "golden" tests of closure conversion (Closed)
Patch Set: Use testing framework from Fasta package in Closure Conversion 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 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 static field dynamic f = null; 5 static field dynamic f;
6 static method foo() → dynamic { 6 static method foo() → dynamic {
7 core::print(self::f.call(0)); 7 core::print(self::f.call(0));
8 } 8 }
9 static method main(dynamic arguments) → dynamic { 9 static method main(dynamic arguments) → dynamic {
10 final Vector #context = MakeVector(2); 10 final Vector #context = MakeVector(2);
11 #context[1] = arguments; 11 #context[1] = arguments;
12 final (dynamic) → dynamic g = MakeClosure<(dynamic) → dynamic>(self::closure#m ain#g, #context); 12 final dynamic g = MakeClosure<(dynamic) → dynamic>(self::closure#main#g, #cont ext);
13 self::f = g; 13 self::f = g;
14 self::foo(); 14 self::foo();
15 } 15 }
16 static method closure#main#g(Vector #contextParameter, dynamic x) → dynamic { 16 static method closure#main#g(Vector #contextParameter, dynamic x) → dynamic {
17 return (#contextParameter[1]).[](x); 17 return (#contextParameter[1]).[](x);
18 } 18 }
OLDNEW
« no previous file with comments | « pkg/kernel/testcases/closures/closures.dart.expect ('k') | pkg/kernel/testcases/closures/non_void_context.dart.expect » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698