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

Side by Side Diff: pkg/front_end/testcases/rasta/static.dart.direct.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; 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 static const field dynamic staticConstant = 42; 6 static const field dynamic staticConstant = 42;
7 static field dynamic staticField = 42; 7 static field dynamic staticField = 42;
8 constructor •() → void 8 constructor •() → void
9 : super core::Object::•() 9 : super core::Object::•()
10 ; 10 ;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 throw new core::NoSuchMethodError::_withType(null, #staticConstant, 34, <dyn amic>[87].toList(growable: false), <dynamic, dynamic>{}, null); 62 throw new core::NoSuchMethodError::_withType(null, #staticConstant, 34, <dyn amic>[87].toList(growable: false), <dynamic, dynamic>{}, null);
63 self::use(throw new core::NoSuchMethodError::_withType(null, #staticConstant , 34, <dynamic>[87].toList(growable: false), <dynamic, dynamic>{}, null)); 63 self::use(throw new core::NoSuchMethodError::_withType(null, #staticConstant , 34, <dynamic>[87].toList(growable: false), <dynamic, dynamic>{}, null));
64 self::Foo::staticField = 87; 64 self::Foo::staticField = 87;
65 self::use(self::Foo::staticField = 87); 65 self::use(self::Foo::staticField = 87);
66 throw new core::NoSuchMethodError::_withType(null, #staticFunction, 34, <dyn amic>[87].toList(growable: false), <dynamic, dynamic>{}, null); 66 throw new core::NoSuchMethodError::_withType(null, #staticFunction, 34, <dyn amic>[87].toList(growable: false), <dynamic, dynamic>{}, null);
67 self::use(throw new core::NoSuchMethodError::_withType(null, #staticFunction , 34, <dynamic>[87].toList(growable: false), <dynamic, dynamic>{}, null)); 67 self::use(throw new core::NoSuchMethodError::_withType(null, #staticFunction , 34, <dynamic>[87].toList(growable: false), <dynamic, dynamic>{}, null));
68 throw new core::NoSuchMethodError::_withType(null, #staticGetter, 34, <dynam ic>[87].toList(growable: false), <dynamic, dynamic>{}, null); 68 throw new core::NoSuchMethodError::_withType(null, #staticGetter, 34, <dynam ic>[87].toList(growable: false), <dynamic, dynamic>{}, null);
69 self::use(throw new core::NoSuchMethodError::_withType(null, #staticGetter, 34, <dynamic>[87].toList(growable: false), <dynamic, dynamic>{}, null)); 69 self::use(throw new core::NoSuchMethodError::_withType(null, #staticGetter, 34, <dynamic>[87].toList(growable: false), <dynamic, dynamic>{}, null));
70 self::Foo::staticSetter = 87; 70 self::Foo::staticSetter = 87;
71 self::use(self::Foo::staticSetter = 87); 71 self::use(self::Foo::staticSetter = 87);
72 self::Foo::staticConstant.==(null) ? throw new core::NoSuchMethodError::_wit hType(null, #staticConstant, 34, <dynamic>[87].toList(growable: false), <dynamic , dynamic>{}, null) : null; 72 self::Foo::staticConstant.==(null) ?{dynamic} throw new core::NoSuchMethodEr ror::_withType(null, #staticConstant, 34, <dynamic>[87].toList(growable: false), <dynamic, dynamic>{}, null) : null;
73 self::use(let final dynamic #t11 = self::Foo::staticConstant in #t11.==(null ) ? throw new core::NoSuchMethodError::_withType(null, #staticConstant, 34, <dyn amic>[87].toList(growable: false), <dynamic, dynamic>{}, null) : #t11); 73 self::use(let final dynamic #t11 = self::Foo::staticConstant in #t11.==(null ) ?{dynamic} throw new core::NoSuchMethodError::_withType(null, #staticConstant, 34, <dynamic>[87].toList(growable: false), <dynamic, dynamic>{}, null) : #t11);
74 self::Foo::staticField.==(null) ? self::Foo::staticField = 87 : null; 74 self::Foo::staticField.==(null) ?{dynamic} self::Foo::staticField = 87 : nul l;
75 self::use(let final dynamic #t12 = self::Foo::staticField in #t12.==(null) ? self::Foo::staticField = 87 : #t12); 75 self::use(let final dynamic #t12 = self::Foo::staticField in #t12.==(null) ? {dynamic} self::Foo::staticField = 87 : #t12);
76 self::Foo::staticFunction.==(null) ? throw new core::NoSuchMethodError::_wit hType(null, #staticFunction, 34, <dynamic>[87].toList(growable: false), <dynamic , dynamic>{}, null) : null; 76 self::Foo::staticFunction.==(null) ?{dynamic} throw new core::NoSuchMethodEr ror::_withType(null, #staticFunction, 34, <dynamic>[87].toList(growable: false), <dynamic, dynamic>{}, null) : null;
77 self::use(let final dynamic #t13 = self::Foo::staticFunction in #t13.==(null ) ? throw new core::NoSuchMethodError::_withType(null, #staticFunction, 34, <dyn amic>[87].toList(growable: false), <dynamic, dynamic>{}, null) : #t13); 77 self::use(let final dynamic #t13 = self::Foo::staticFunction in #t13.==(null ) ?{dynamic} throw new core::NoSuchMethodError::_withType(null, #staticFunction, 34, <dynamic>[87].toList(growable: false), <dynamic, dynamic>{}, null) : #t13);
78 self::Foo::staticGetter.==(null) ? throw new core::NoSuchMethodError::_withT ype(null, #staticGetter, 34, <dynamic>[87].toList(growable: false), <dynamic, dy namic>{}, null) : null; 78 self::Foo::staticGetter.==(null) ?{dynamic} throw new core::NoSuchMethodErro r::_withType(null, #staticGetter, 34, <dynamic>[87].toList(growable: false), <dy namic, dynamic>{}, null) : null;
79 self::use(let final dynamic #t14 = self::Foo::staticGetter in #t14.==(null) ? throw new core::NoSuchMethodError::_withType(null, #staticGetter, 34, <dynamic >[87].toList(growable: false), <dynamic, dynamic>{}, null) : #t14); 79 self::use(let final dynamic #t14 = self::Foo::staticGetter in #t14.==(null) ?{dynamic} throw new core::NoSuchMethodError::_withType(null, #staticGetter, 34, <dynamic>[87].toList(growable: false), <dynamic, dynamic>{}, null) : #t14);
80 (throw new core::NoSuchMethodError::_withType(null, #staticSetter, 33, <dyna mic>[].toList(growable: false), <dynamic, dynamic>{}, null)).==(null) ? self::Fo o::staticSetter = 87 : null; 80 (throw new core::NoSuchMethodError::_withType(null, #staticSetter, 33, <dyna mic>[].toList(growable: false), <dynamic, dynamic>{}, null)).==(null) ?{dynamic} self::Foo::staticSetter = 87 : null;
81 self::use(let final dynamic #t15 = throw new core::NoSuchMethodError::_withT ype(null, #staticSetter, 33, <dynamic>[].toList(growable: false), <dynamic, dyna mic>{}, null) in #t15.==(null) ? self::Foo::staticSetter = 87 : #t15); 81 self::use(let final dynamic #t15 = throw new core::NoSuchMethodError::_withT ype(null, #staticSetter, 33, <dynamic>[].toList(growable: false), <dynamic, dyna mic>{}, null) in #t15.==(null) ?{dynamic} self::Foo::staticSetter = 87 : #t15);
82 } 82 }
83 on core::NoSuchMethodError catch(no-exception-var) { 83 on core::NoSuchMethodError catch(no-exception-var) {
84 } 84 }
85 } 85 }
OLDNEW
« no previous file with comments | « pkg/front_end/testcases/rasta/parser_error.dart.direct.expect ('k') | pkg/front_end/testcases/rasta/super.dart.direct.expect » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698