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

Side by Side Diff: pkg/front_end/testcases/escape.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 A extends core::Object { 5 class A extends core::Object {
6 field dynamic field = null; 6 field dynamic field = null;
7 constructor •() → void 7 default constructor •() → void
8 : super core::Object::•() 8 : super core::Object::•()
9 ; 9 ;
10 } 10 }
11 class B extends core::Object { 11 class B extends core::Object {
12 field dynamic field = null; 12 field dynamic field = null;
13 constructor •() → void 13 default constructor •() → void
14 : super core::Object::•() 14 : super core::Object::•()
15 ; 15 ;
16 } 16 }
17 class C extends core::Object { 17 class C extends core::Object {
18 constructor •() → void 18 default constructor •() → void
19 : super core::Object::•() 19 : super core::Object::•()
20 ; 20 ;
21 operator ==(dynamic x) → dynamic 21 operator ==(dynamic x) → dynamic
22 return false; 22 return false;
23 } 23 }
24 class X extends core::Object implements self::A, self::B { 24 class X extends core::Object implements self::A, self::B {
25 field dynamic field = null; 25 field dynamic field = null;
26 constructor •() → void 26 default constructor •() → void
27 : super core::Object::•() 27 : super core::Object::•()
28 ; 28 ;
29 } 29 }
30 static method useAsA(self::A object) → void { 30 static method useAsA(self::A object) → void {
31 dynamic _ = object.field; 31 dynamic _ = object.field;
32 } 32 }
33 static method useAsB(self::B object) → void { 33 static method useAsB(self::B object) → void {
34 dynamic _ = object.field; 34 dynamic _ = object.field;
35 self::escape(object); 35 self::escape(object);
36 } 36 }
37 static method escape(dynamic x) → void { 37 static method escape(dynamic x) → void {
38 x.==(null) ? x = "" : null; 38 x.==(null) ? x = "" : null;
39 x.==(null) ? x = 45 : null; 39 x.==(null) ? x = 45 : null;
40 if(!(x is core::int) && !(x is core::String)) { 40 if(!(x is core::int) && !(x is core::String)) {
41 x.field = 45; 41 x.field = 45;
42 } 42 }
43 } 43 }
44 static method main() → dynamic { 44 static method main() → dynamic {
45 dynamic object = new self::X::•(); 45 dynamic object = new self::X::•();
46 self::useAsA(new self::A::•()); 46 self::useAsA(new self::A::•());
47 self::useAsA(object); 47 self::useAsA(object);
48 self::useAsB(new self::B::•()); 48 self::useAsB(new self::B::•());
49 self::useAsB(object); 49 self::useAsB(object);
50 } 50 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698