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

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

Issue 2981783002: Set 'isSyntheticDefault' for default constructors. (Closed)
Patch Set: 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 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 constructor •() → void 6 default constructor •() → void
7 : super core::Object::•() 7 : super core::Object::•()
8 ; 8 ;
9 method method(dynamic x, [dynamic y, dynamic z]) → dynamic { 9 method method(dynamic x, [dynamic y = null, dynamic z = null]) → dynamic {
10 return "string"; 10 return "string";
11 } 11 }
12 } 12 }
13 abstract class External extends core::Object { 13 abstract class External extends core::Object {
14 constructor •() → void 14 default constructor •() → void
15 : super core::Object::•() 15 : super core::Object::•()
16 ; 16 ;
17 abstract method externalMethod(core::int x, [core::int y, core::int z]) → core ::String; 17 abstract method externalMethod(core::int x, [core::int y = null, core::int z = null]) → core::String;
18 abstract method listen(self::Listener listener) → void; 18 abstract method listen(self::Listener listener) → void;
19 } 19 }
20 abstract class Listener extends core::Object { 20 abstract class Listener extends core::Object {
21 constructor •() → void 21 default constructor •() → void
22 : super core::Object::•() 22 : super core::Object::•()
23 ; 23 ;
24 abstract method event(core::String input, [core::int x, core::int y]) → void; 24 abstract method event(core::String input, [core::int x = null, core::int y = n ull]) → void;
25 } 25 }
26 class TestListener extends self::Listener { 26 class TestListener extends self::Listener {
27 constructor •() → void 27 default constructor •() → void
28 : super self::Listener::•() 28 : super self::Listener::•()
29 ; 29 ;
30 method event(dynamic input, [dynamic x, dynamic y]) → void {} 30 method event(dynamic input, [dynamic x = null, dynamic y = null]) → void {}
31 } 31 }
32 class ExtendedListener extends self::Listener { 32 class ExtendedListener extends self::Listener {
33 constructor •() → void 33 default constructor •() → void
34 : super self::Listener::•() 34 : super self::Listener::•()
35 ; 35 ;
36 method event(dynamic input, [dynamic x, dynamic y, dynamic z]) → void {} 36 method event(dynamic input, [dynamic x = null, dynamic y = null, dynamic z = n ull]) → void {}
37 } 37 }
38 class InvalidListener extends core::Object { 38 class InvalidListener extends core::Object {
39 constructor •() → void 39 default constructor •() → void
40 : super core::Object::•() 40 : super core::Object::•()
41 ; 41 ;
42 method event(dynamic input, [dynamic x]) → void {} 42 method event(dynamic input, [dynamic x = null]) → void {}
43 } 43 }
44 external static method createExternal() → self::External; 44 external static abstract method createExternal() → self::External;
45 static method main() → dynamic { 45 static method main() → dynamic {
46 dynamic foo = new self::Foo::•(); 46 dynamic foo = new self::Foo::•();
47 dynamic string1 = foo.method(1); 47 dynamic string1 = foo.method(1);
48 dynamic string2 = foo.method(1, 2); 48 dynamic string2 = foo.method(1, 2);
49 dynamic string3 = foo.method(1, 2, 3); 49 dynamic string3 = foo.method(1, 2, 3);
50 dynamic extern = self::createExternal(); 50 dynamic extern = self::createExternal();
51 dynamic string4 = extern.externalMethod(1); 51 dynamic string4 = extern.externalMethod(1);
52 dynamic string5 = extern.externalMethod(1, 2); 52 dynamic string5 = extern.externalMethod(1, 2);
53 dynamic string6 = extern.externalMethod(1, 2, 3); 53 dynamic string6 = extern.externalMethod(1, 2, 3);
54 extern.listen(new self::TestListener::•()); 54 extern.listen(new self::TestListener::•());
55 extern.listen(new self::ExtendedListener::•()); 55 extern.listen(new self::ExtendedListener::•());
56 extern.listen(new self::InvalidListener::•()); 56 extern.listen(new self::InvalidListener::•());
57 dynamic nothing1 = foo.method(); 57 dynamic nothing1 = foo.method();
58 dynamic nothing2 = foo.method(1, 2, 3, 4); 58 dynamic nothing2 = foo.method(1, 2, 3, 4);
59 dynamic nothing3 = extern.externalMethod(); 59 dynamic nothing3 = extern.externalMethod();
60 dynamic nothing4 = extern.externalMethod(1, 2, 3, 4); 60 dynamic nothing4 = extern.externalMethod(1, 2, 3, 4);
61 } 61 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698