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

Side by Side Diff: pkg/front_end/testcases/inference/infer_assign_to_property_null_aware_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 Test1 extends core::Object { 5 class Test1 extends core::Object {
6 field core::int prop = null; 6 field core::int prop = null;
7 constructor •() → void 7 constructor •() → void
8 : super core::Object::•() 8 : super core::Object::•()
9 ; 9 ;
10 static method test(self::Test1 t) → void { 10 static method test(self::Test1 t) → void {
11 core::int v1 = let final dynamic #t1 = t in #t1.==(null) ? null : #t1.{self: :Test1::prop} = self::getInt(); 11 core::int v1 = let final dynamic #t1 = t in #t1.==(null) ?{dynamic} null : # t1.{self::Test1::prop} = self::getInt();
12 core::num v2 = let final dynamic #t2 = t in #t2.==(null) ? null : #t2.{self: :Test1::prop} = self::getNum(); 12 core::num v2 = let final dynamic #t2 = t in #t2.==(null) ?{dynamic} null : # t2.{self::Test1::prop} = self::getNum();
13 core::int v4 = let final dynamic #t3 = t in #t3.==(null) ? null : let final dynamic #t4 = #t3.{self::Test1::prop} in #t4.{core::num::==}(null) ? #t3.{self:: Test1::prop} = self::getInt() : #t4; 13 core::int v4 = let final dynamic #t3 = t in #t3.==(null) ?{dynamic} null : l et final dynamic #t4 = #t3.{self::Test1::prop} in #t4.{core::num::==}(null) ?{dy namic} #t3.{self::Test1::prop} = self::getInt() : #t4;
14 core::num v5 = let final dynamic #t5 = t in #t5.==(null) ? null : let final dynamic #t6 = #t5.{self::Test1::prop} in #t6.{core::num::==}(null) ? #t5.{self:: Test1::prop} = self::getNum() : #t6; 14 core::num v5 = let final dynamic #t5 = t in #t5.==(null) ?{dynamic} null : l et final dynamic #t6 = #t5.{self::Test1::prop} in #t6.{core::num::==}(null) ?{dy namic} #t5.{self::Test1::prop} = self::getNum() : #t6;
15 core::int v7 = let final dynamic #t7 = t in #t7.==(null) ? null : #t7.{self: :Test1::prop} = #t7.{self::Test1::prop}.{core::num::+}(self::getInt()); 15 core::int v7 = let final dynamic #t7 = t in #t7.==(null) ?{dynamic} null : # t7.{self::Test1::prop} = #t7.{self::Test1::prop}.{core::num::+}(self::getInt());
16 core::num v8 = let final dynamic #t8 = t in #t8.==(null) ? null : #t8.{self: :Test1::prop} = #t8.{self::Test1::prop}.{core::num::+}(self::getNum()); 16 core::num v8 = let final dynamic #t8 = t in #t8.==(null) ?{dynamic} null : # t8.{self::Test1::prop} = #t8.{self::Test1::prop}.{core::num::+}(self::getNum());
17 core::int v10 = let final dynamic #t9 = t in #t9.==(null) ? null : #t9.{self ::Test1::prop} = #t9.{self::Test1::prop}.{core::num::+}(1); 17 core::int v10 = let final dynamic #t9 = t in #t9.==(null) ?{dynamic} null : #t9.{self::Test1::prop} = #t9.{self::Test1::prop}.{core::num::+}(1);
18 core::int v11 = let final dynamic #t10 = t in #t10.==(null) ? null : let fin al dynamic #t11 = #t10.{self::Test1::prop} in let final dynamic #t12 = #t10.{sel f::Test1::prop} = #t11.{core::num::+}(1) in #t11; 18 core::int v11 = let final dynamic #t10 = t in #t10.==(null) ?{dynamic} null : let final dynamic #t11 = #t10.{self::Test1::prop} in let final dynamic #t12 = #t10.{self::Test1::prop} = #t11.{core::num::+}(1) in #t11;
19 } 19 }
20 } 20 }
21 class Test2 extends core::Object { 21 class Test2 extends core::Object {
22 field core::num prop = null; 22 field core::num prop = null;
23 constructor •() → void 23 constructor •() → void
24 : super core::Object::•() 24 : super core::Object::•()
25 ; 25 ;
26 static method test(self::Test2 t) → void { 26 static method test(self::Test2 t) → void {
27 core::int v1 = let final dynamic #t13 = t in #t13.==(null) ? null : #t13.{se lf::Test2::prop} = self::getInt(); 27 core::int v1 = let final dynamic #t13 = t in #t13.==(null) ?{dynamic} null : #t13.{self::Test2::prop} = self::getInt();
28 core::num v2 = let final dynamic #t14 = t in #t14.==(null) ? null : #t14.{se lf::Test2::prop} = self::getNum(); 28 core::num v2 = let final dynamic #t14 = t in #t14.==(null) ?{dynamic} null : #t14.{self::Test2::prop} = self::getNum();
29 core::double v3 = let final dynamic #t15 = t in #t15.==(null) ? null : #t15. {self::Test2::prop} = self::getDouble(); 29 core::double v3 = let final dynamic #t15 = t in #t15.==(null) ?{dynamic} nul l : #t15.{self::Test2::prop} = self::getDouble();
30 core::num v4 = let final dynamic #t16 = t in #t16.==(null) ? null : let fina l dynamic #t17 = #t16.{self::Test2::prop} in #t17.{core::num::==}(null) ? #t16.{ self::Test2::prop} = self::getInt() : #t17; 30 core::num v4 = let final dynamic #t16 = t in #t16.==(null) ?{dynamic} null : let final dynamic #t17 = #t16.{self::Test2::prop} in #t17.{core::num::==}(null) ?{dynamic} #t16.{self::Test2::prop} = self::getInt() : #t17;
31 core::num v5 = let final dynamic #t18 = t in #t18.==(null) ? null : let fina l dynamic #t19 = #t18.{self::Test2::prop} in #t19.{core::num::==}(null) ? #t18.{ self::Test2::prop} = self::getNum() : #t19; 31 core::num v5 = let final dynamic #t18 = t in #t18.==(null) ?{dynamic} null : let final dynamic #t19 = #t18.{self::Test2::prop} in #t19.{core::num::==}(null) ?{dynamic} #t18.{self::Test2::prop} = self::getNum() : #t19;
32 core::num v6 = let final dynamic #t20 = t in #t20.==(null) ? null : let fina l dynamic #t21 = #t20.{self::Test2::prop} in #t21.{core::num::==}(null) ? #t20.{ self::Test2::prop} = self::getDouble() : #t21; 32 core::num v6 = let final dynamic #t20 = t in #t20.==(null) ?{dynamic} null : let final dynamic #t21 = #t20.{self::Test2::prop} in #t21.{core::num::==}(null) ?{dynamic} #t20.{self::Test2::prop} = self::getDouble() : #t21;
33 core::num v7 = let final dynamic #t22 = t in #t22.==(null) ? null : #t22.{se lf::Test2::prop} = #t22.{self::Test2::prop}.{core::num::+}(self::getInt()); 33 core::num v7 = let final dynamic #t22 = t in #t22.==(null) ?{dynamic} null : #t22.{self::Test2::prop} = #t22.{self::Test2::prop}.{core::num::+}(self::getInt ());
34 core::num v8 = let final dynamic #t23 = t in #t23.==(null) ? null : #t23.{se lf::Test2::prop} = #t23.{self::Test2::prop}.{core::num::+}(self::getNum()); 34 core::num v8 = let final dynamic #t23 = t in #t23.==(null) ?{dynamic} null : #t23.{self::Test2::prop} = #t23.{self::Test2::prop}.{core::num::+}(self::getNum ());
35 core::num v9 = let final dynamic #t24 = t in #t24.==(null) ? null : #t24.{se lf::Test2::prop} = #t24.{self::Test2::prop}.{core::num::+}(self::getDouble()); 35 core::num v9 = let final dynamic #t24 = t in #t24.==(null) ?{dynamic} null : #t24.{self::Test2::prop} = #t24.{self::Test2::prop}.{core::num::+}(self::getDou ble());
36 core::num v10 = let final dynamic #t25 = t in #t25.==(null) ? null : #t25.{s elf::Test2::prop} = #t25.{self::Test2::prop}.{core::num::+}(1); 36 core::num v10 = let final dynamic #t25 = t in #t25.==(null) ?{dynamic} null : #t25.{self::Test2::prop} = #t25.{self::Test2::prop}.{core::num::+}(1);
37 core::num v11 = let final dynamic #t26 = t in #t26.==(null) ? null : let fin al dynamic #t27 = #t26.{self::Test2::prop} in let final dynamic #t28 = #t26.{sel f::Test2::prop} = #t27.{core::num::+}(1) in #t27; 37 core::num v11 = let final dynamic #t26 = t in #t26.==(null) ?{dynamic} null : let final dynamic #t27 = #t26.{self::Test2::prop} in let final dynamic #t28 = #t26.{self::Test2::prop} = #t27.{core::num::+}(1) in #t27;
38 } 38 }
39 } 39 }
40 class Test3 extends core::Object { 40 class Test3 extends core::Object {
41 field core::double prop = null; 41 field core::double prop = null;
42 constructor •() → void 42 constructor •() → void
43 : super core::Object::•() 43 : super core::Object::•()
44 ; 44 ;
45 static method test3(self::Test3 t) → void { 45 static method test3(self::Test3 t) → void {
46 core::num v2 = let final dynamic #t29 = t in #t29.==(null) ? null : #t29.{se lf::Test3::prop} = self::getNum(); 46 core::num v2 = let final dynamic #t29 = t in #t29.==(null) ?{dynamic} null : #t29.{self::Test3::prop} = self::getNum();
47 core::double v3 = let final dynamic #t30 = t in #t30.==(null) ? null : #t30. {self::Test3::prop} = self::getDouble(); 47 core::double v3 = let final dynamic #t30 = t in #t30.==(null) ?{dynamic} nul l : #t30.{self::Test3::prop} = self::getDouble();
48 core::num v5 = let final dynamic #t31 = t in #t31.==(null) ? null : let fina l dynamic #t32 = #t31.{self::Test3::prop} in #t32.{core::num::==}(null) ? #t31.{ self::Test3::prop} = self::getNum() : #t32; 48 core::num v5 = let final dynamic #t31 = t in #t31.==(null) ?{dynamic} null : let final dynamic #t32 = #t31.{self::Test3::prop} in #t32.{core::num::==}(null) ?{dynamic} #t31.{self::Test3::prop} = self::getNum() : #t32;
49 core::double v6 = let final dynamic #t33 = t in #t33.==(null) ? null : let f inal dynamic #t34 = #t33.{self::Test3::prop} in #t34.{core::num::==}(null) ? #t3 3.{self::Test3::prop} = self::getDouble() : #t34; 49 core::double v6 = let final dynamic #t33 = t in #t33.==(null) ?{dynamic} nul l : let final dynamic #t34 = #t33.{self::Test3::prop} in #t34.{core::num::==}(nu ll) ?{dynamic} #t33.{self::Test3::prop} = self::getDouble() : #t34;
50 core::double v7 = let final dynamic #t35 = t in #t35.==(null) ? null : #t35. {self::Test3::prop} = #t35.{self::Test3::prop}.{core::double::+}(self::getInt()) ; 50 core::double v7 = let final dynamic #t35 = t in #t35.==(null) ?{dynamic} nul l : #t35.{self::Test3::prop} = #t35.{self::Test3::prop}.{core::double::+}(self:: getInt());
51 core::double v8 = let final dynamic #t36 = t in #t36.==(null) ? null : #t36. {self::Test3::prop} = #t36.{self::Test3::prop}.{core::double::+}(self::getNum()) ; 51 core::double v8 = let final dynamic #t36 = t in #t36.==(null) ?{dynamic} nul l : #t36.{self::Test3::prop} = #t36.{self::Test3::prop}.{core::double::+}(self:: getNum());
52 core::double v9 = let final dynamic #t37 = t in #t37.==(null) ? null : #t37. {self::Test3::prop} = #t37.{self::Test3::prop}.{core::double::+}(self::getDouble ()); 52 core::double v9 = let final dynamic #t37 = t in #t37.==(null) ?{dynamic} nul l : #t37.{self::Test3::prop} = #t37.{self::Test3::prop}.{core::double::+}(self:: getDouble());
53 core::double v10 = let final dynamic #t38 = t in #t38.==(null) ? null : #t38 .{self::Test3::prop} = #t38.{self::Test3::prop}.{core::double::+}(1); 53 core::double v10 = let final dynamic #t38 = t in #t38.==(null) ?{dynamic} nu ll : #t38.{self::Test3::prop} = #t38.{self::Test3::prop}.{core::double::+}(1);
54 core::double v11 = let final dynamic #t39 = t in #t39.==(null) ? null : let final dynamic #t40 = #t39.{self::Test3::prop} in let final dynamic #t41 = #t39.{ self::Test3::prop} = #t40.{core::double::+}(1) in #t40; 54 core::double v11 = let final dynamic #t39 = t in #t39.==(null) ?{dynamic} nu ll : let final dynamic #t40 = #t39.{self::Test3::prop} in let final dynamic #t41 = #t39.{self::Test3::prop} = #t40.{core::double::+}(1) in #t40;
55 } 55 }
56 } 56 }
57 static method getInt() → core::int 57 static method getInt() → core::int
58 return 0; 58 return 0;
59 static method getNum() → core::num 59 static method getNum() → core::num
60 return 0; 60 return 0;
61 static method getDouble() → core::double 61 static method getDouble() → core::double
62 return 0.0; 62 return 0.0;
63 static method main() → dynamic {} 63 static method main() → dynamic {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698