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

Side by Side Diff: pkg/front_end/testcases/inference/infer_assign_to_property_super_upwards.dart.strong.expect

Issue 2949753002: Print static types of conditional expressions. (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 test; 1 library test;
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 Base extends core::Object { 5 class Base extends core::Object {
6 field core::int intProp = null; 6 field core::int intProp = null;
7 field core::num numProp = null; 7 field core::num numProp = null;
8 field core::double doubleProp = null; 8 field core::double doubleProp = null;
9 constructor •() → void 9 constructor •() → void
10 : super core::Object::•() 10 : super core::Object::•()
11 ; 11 ;
12 } 12 }
13 class Test1 extends self::Base { 13 class Test1 extends self::Base {
14 constructor •() → void 14 constructor •() → void
15 : super self::Base::•() 15 : super self::Base::•()
16 ; 16 ;
17 method test() → void { 17 method test() → void {
18 core::int v1 = super.{self::Base::intProp} = self::getInt(); 18 core::int v1 = super.{self::Base::intProp} = self::getInt();
19 core::num v2 = super.{self::Base::intProp} = self::getNum(); 19 core::num v2 = super.{self::Base::intProp} = self::getNum();
20 core::int v4 = let final dynamic #t1 = super.{self::Base::intProp} in #t1.{c ore::num::==}(null) ? super.{self::Base::intProp} = self::getInt() : #t1; 20 core::int v4 = let final dynamic #t1 = super.{self::Base::intProp} in #t1.{c ore::num::==}(null) ?{dynamic} super.{self::Base::intProp} = self::getInt() : #t 1;
21 core::num v5 = let final dynamic #t2 = super.{self::Base::intProp} in #t2.{c ore::num::==}(null) ? super.{self::Base::intProp} = self::getNum() : #t2; 21 core::num v5 = let final dynamic #t2 = super.{self::Base::intProp} in #t2.{c ore::num::==}(null) ?{dynamic} super.{self::Base::intProp} = self::getNum() : #t 2;
22 core::int v7 = super.{self::Base::intProp} = super.{self::Base::intProp}.{co re::num::+}(self::getInt()); 22 core::int v7 = super.{self::Base::intProp} = super.{self::Base::intProp}.{co re::num::+}(self::getInt());
23 core::num v8 = super.{self::Base::intProp} = super.{self::Base::intProp}.{co re::num::+}(self::getNum()); 23 core::num v8 = super.{self::Base::intProp} = super.{self::Base::intProp}.{co re::num::+}(self::getNum());
24 core::int v10 = super.{self::Base::intProp} = super.{self::Base::intProp}.{c ore::num::+}(1); 24 core::int v10 = super.{self::Base::intProp} = super.{self::Base::intProp}.{c ore::num::+}(1);
25 core::int v11 = let final dynamic #t3 = super.{self::Base::intProp} in let f inal dynamic #t4 = super.{self::Base::intProp} = #t3.{core::num::+}(1) in #t3; 25 core::int v11 = let final dynamic #t3 = super.{self::Base::intProp} in let f inal dynamic #t4 = super.{self::Base::intProp} = #t3.{core::num::+}(1) in #t3;
26 } 26 }
27 } 27 }
28 class Test2 extends self::Base { 28 class Test2 extends self::Base {
29 constructor •() → void 29 constructor •() → void
30 : super self::Base::•() 30 : super self::Base::•()
31 ; 31 ;
32 method test() → void { 32 method test() → void {
33 core::int v1 = super.{self::Base::numProp} = self::getInt(); 33 core::int v1 = super.{self::Base::numProp} = self::getInt();
34 core::num v2 = super.{self::Base::numProp} = self::getNum(); 34 core::num v2 = super.{self::Base::numProp} = self::getNum();
35 core::double v3 = super.{self::Base::numProp} = self::getDouble(); 35 core::double v3 = super.{self::Base::numProp} = self::getDouble();
36 core::num v4 = let final dynamic #t5 = super.{self::Base::numProp} in #t5.{c ore::num::==}(null) ? super.{self::Base::numProp} = self::getInt() : #t5; 36 core::num v4 = let final dynamic #t5 = super.{self::Base::numProp} in #t5.{c ore::num::==}(null) ?{dynamic} super.{self::Base::numProp} = self::getInt() : #t 5;
37 core::num v5 = let final dynamic #t6 = super.{self::Base::numProp} in #t6.{c ore::num::==}(null) ? super.{self::Base::numProp} = self::getNum() : #t6; 37 core::num v5 = let final dynamic #t6 = super.{self::Base::numProp} in #t6.{c ore::num::==}(null) ?{dynamic} super.{self::Base::numProp} = self::getNum() : #t 6;
38 core::num v6 = let final dynamic #t7 = super.{self::Base::numProp} in #t7.{c ore::num::==}(null) ? super.{self::Base::numProp} = self::getDouble() : #t7; 38 core::num v6 = let final dynamic #t7 = super.{self::Base::numProp} in #t7.{c ore::num::==}(null) ?{dynamic} super.{self::Base::numProp} = self::getDouble() : #t7;
39 core::num v7 = super.{self::Base::numProp} = super.{self::Base::numProp}.{co re::num::+}(self::getInt()); 39 core::num v7 = super.{self::Base::numProp} = super.{self::Base::numProp}.{co re::num::+}(self::getInt());
40 core::num v8 = super.{self::Base::numProp} = super.{self::Base::numProp}.{co re::num::+}(self::getNum()); 40 core::num v8 = super.{self::Base::numProp} = super.{self::Base::numProp}.{co re::num::+}(self::getNum());
41 core::num v9 = super.{self::Base::numProp} = super.{self::Base::numProp}.{co re::num::+}(self::getDouble()); 41 core::num v9 = super.{self::Base::numProp} = super.{self::Base::numProp}.{co re::num::+}(self::getDouble());
42 core::num v10 = super.{self::Base::numProp} = super.{self::Base::numProp}.{c ore::num::+}(1); 42 core::num v10 = super.{self::Base::numProp} = super.{self::Base::numProp}.{c ore::num::+}(1);
43 core::num v11 = let final dynamic #t8 = super.{self::Base::numProp} in let f inal dynamic #t9 = super.{self::Base::numProp} = #t8.{core::num::+}(1) in #t8; 43 core::num v11 = let final dynamic #t8 = super.{self::Base::numProp} in let f inal dynamic #t9 = super.{self::Base::numProp} = #t8.{core::num::+}(1) in #t8;
44 } 44 }
45 } 45 }
46 class Test3 extends self::Base { 46 class Test3 extends self::Base {
47 constructor •() → void 47 constructor •() → void
48 : super self::Base::•() 48 : super self::Base::•()
49 ; 49 ;
50 method test3() → void { 50 method test3() → void {
51 core::num v2 = super.{self::Base::doubleProp} = self::getNum(); 51 core::num v2 = super.{self::Base::doubleProp} = self::getNum();
52 core::double v3 = super.{self::Base::doubleProp} = self::getDouble(); 52 core::double v3 = super.{self::Base::doubleProp} = self::getDouble();
53 core::num v5 = let final dynamic #t10 = super.{self::Base::doubleProp} in #t 10.{core::num::==}(null) ? super.{self::Base::doubleProp} = self::getNum() : #t1 0; 53 core::num v5 = let final dynamic #t10 = super.{self::Base::doubleProp} in #t 10.{core::num::==}(null) ?{dynamic} super.{self::Base::doubleProp} = self::getNu m() : #t10;
54 core::double v6 = let final dynamic #t11 = super.{self::Base::doubleProp} in #t11.{core::num::==}(null) ? super.{self::Base::doubleProp} = self::getDouble() : #t11; 54 core::double v6 = let final dynamic #t11 = super.{self::Base::doubleProp} in #t11.{core::num::==}(null) ?{dynamic} super.{self::Base::doubleProp} = self::ge tDouble() : #t11;
55 core::double v7 = super.{self::Base::doubleProp} = super.{self::Base::double Prop}.{core::double::+}(self::getInt()); 55 core::double v7 = super.{self::Base::doubleProp} = super.{self::Base::double Prop}.{core::double::+}(self::getInt());
56 core::double v8 = super.{self::Base::doubleProp} = super.{self::Base::double Prop}.{core::double::+}(self::getNum()); 56 core::double v8 = super.{self::Base::doubleProp} = super.{self::Base::double Prop}.{core::double::+}(self::getNum());
57 core::double v9 = super.{self::Base::doubleProp} = super.{self::Base::double Prop}.{core::double::+}(self::getDouble()); 57 core::double v9 = super.{self::Base::doubleProp} = super.{self::Base::double Prop}.{core::double::+}(self::getDouble());
58 core::double v10 = super.{self::Base::doubleProp} = super.{self::Base::doubl eProp}.{core::double::+}(1); 58 core::double v10 = super.{self::Base::doubleProp} = super.{self::Base::doubl eProp}.{core::double::+}(1);
59 core::double v11 = let final dynamic #t12 = super.{self::Base::doubleProp} i n let final dynamic #t13 = super.{self::Base::doubleProp} = #t12.{core::double:: +}(1) in #t12; 59 core::double v11 = let final dynamic #t12 = super.{self::Base::doubleProp} i n let final dynamic #t13 = super.{self::Base::doubleProp} = #t12.{core::double:: +}(1) in #t12;
60 } 60 }
61 } 61 }
62 static method getInt() → core::int 62 static method getInt() → core::int
63 return 0; 63 return 0;
64 static method getNum() → core::num 64 static method getNum() → core::num
65 return 0; 65 return 0;
66 static method getDouble() → core::double 66 static method getDouble() → core::double
67 return 0.0; 67 return 0.0;
68 static method main() → dynamic {} 68 static method main() → dynamic {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698