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

Side by Side Diff: pkg/front_end/testcases/closure.dart.direct.expect

Issue 2825063002: Move kernel baseline tests to front_end. (Closed)
Patch Set: 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 class Foo extends core::Object { 5 class Foo extends core::Object {
6 field dynamic _field = new self::Bar::•(); 6 field dynamic _field = new self::Bar::•();
7 constructor •() → void 7 constructor •() → void
8 : super core::Object::•() 8 : super core::Object::•()
9 ; 9 ;
10 } 10 }
11 class Bar extends core::Object { 11 class Bar extends core::Object {
12 constructor •() → void 12 constructor •() → void
13 : super core::Object::•() 13 : super core::Object::•()
14 ; 14 ;
15 } 15 }
16 static method useCallback(dynamic callback) → dynamic { 16 static method useCallback(dynamic callback) → dynamic {
17 dynamic _ = callback.call(); 17 dynamic _ = callback.call();
18 } 18 }
19 static method main() → dynamic { 19 static method main() → dynamic {
20 dynamic x; 20 dynamic x;
21 function inner() → dynamic { 21 function inner() → dynamic {
22 x = new self::Foo::•(); 22 x = new self::Foo::•();
23 return new self::Foo::•(); 23 return new self::Foo::•();
24 } 24 }
25 self::useCallback(inner); 25 self::useCallback(inner);
26 dynamic _ = inner.call()._field; 26 dynamic _ = inner.call()._field;
27 } 27 }
OLDNEW
« no previous file with comments | « pkg/front_end/testcases/closure.dart ('k') | pkg/front_end/testcases/closure.dart.outline.expect » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698