| OLD | NEW |
| (Empty) |
| 1 library; | |
| 2 import self as self; | |
| 3 import "dart:core" as core; | |
| 4 | |
| 5 class Foo extends core::Object { | |
| 6 static const field dynamic staticConstant = 42; | |
| 7 static field dynamic staticField = 42; | |
| 8 constructor •() → void | |
| 9 : super core::Object::•() | |
| 10 ; | |
| 11 static method staticFunction() → dynamic {} | |
| 12 static get staticGetter() → dynamic | |
| 13 return null; | |
| 14 static set staticSetter(dynamic _) → dynamic {} | |
| 15 } | |
| 16 static method use(dynamic x) → dynamic { | |
| 17 if(x.==(new core::DateTime::now().millisecondsSinceEpoch)) | |
| 18 throw "Shouldn't happen"; | |
| 19 } | |
| 20 static method main() → dynamic { | |
| 21 try { | |
| 22 self::Foo::staticConstant; | |
| 23 self::use(self::Foo::staticConstant); | |
| 24 self::Foo::staticField; | |
| 25 self::use(self::Foo::staticField); | |
| 26 self::Foo::staticFunction; | |
| 27 self::use(self::Foo::staticFunction); | |
| 28 self::Foo::staticGetter; | |
| 29 self::use(self::Foo::staticGetter); | |
| 30 throw new core::NoSuchMethodError::•(null, #staticSetter, <dynamic>[], <dyna
mic, dynamic>{}, null); | |
| 31 self::use(throw new core::NoSuchMethodError::•(null, #staticSetter, <dynamic
>[], <dynamic, dynamic>{}, null)); | |
| 32 throw new core::NoSuchMethodError::•(null, #staticConstant, <dynamic>[self::
Foo::staticConstant.+(1)], <dynamic, dynamic>{}, null); | |
| 33 self::use(let final dynamic #t1 = self::Foo::staticConstant in let final dyn
amic #t2 = throw new core::NoSuchMethodError::•(null, #staticConstant, <dynamic>
[#t1.+(1)], <dynamic, dynamic>{}, null) in #t1); | |
| 34 self::Foo::staticField = self::Foo::staticField.+(1); | |
| 35 self::use(let final dynamic #t3 = self::Foo::staticField in let final dynami
c #t4 = self::Foo::staticField = #t3.+(1) in #t3); | |
| 36 throw new core::NoSuchMethodError::•(null, #staticFunction, <dynamic>[self::
Foo::staticFunction.+(1)], <dynamic, dynamic>{}, null); | |
| 37 self::use(let final dynamic #t5 = self::Foo::staticFunction in let final dyn
amic #t6 = throw new core::NoSuchMethodError::•(null, #staticFunction, <dynamic>
[#t5.+(1)], <dynamic, dynamic>{}, null) in #t5); | |
| 38 throw new core::NoSuchMethodError::•(null, #staticGetter, <dynamic>[self::Fo
o::staticGetter.+(1)], <dynamic, dynamic>{}, null); | |
| 39 self::use(let final dynamic #t7 = self::Foo::staticGetter in let final dynam
ic #t8 = throw new core::NoSuchMethodError::•(null, #staticGetter, <dynamic>[#t7
.+(1)], <dynamic, dynamic>{}, null) in #t7); | |
| 40 self::Foo::staticSetter = (throw new core::NoSuchMethodError::•(null, #stati
cSetter, <dynamic>[], <dynamic, dynamic>{}, null)).+(1); | |
| 41 self::use(let final dynamic #t9 = throw new core::NoSuchMethodError::•(null,
#staticSetter, <dynamic>[], <dynamic, dynamic>{}, null) in let final dynamic #t
10 = self::Foo::staticSetter = #t9.+(1) in #t9); | |
| 42 throw new core::NoSuchMethodError::•(null, #staticConstant, <dynamic>[self::
Foo::staticConstant.+(1)], <dynamic, dynamic>{}, null); | |
| 43 self::use(throw new core::NoSuchMethodError::•(null, #staticConstant, <dynam
ic>[self::Foo::staticConstant.+(1)], <dynamic, dynamic>{}, null)); | |
| 44 self::Foo::staticField = self::Foo::staticField.+(1); | |
| 45 self::use(self::Foo::staticField = self::Foo::staticField.+(1)); | |
| 46 throw new core::NoSuchMethodError::•(null, #staticFunction, <dynamic>[self::
Foo::staticFunction.+(1)], <dynamic, dynamic>{}, null); | |
| 47 self::use(throw new core::NoSuchMethodError::•(null, #staticFunction, <dynam
ic>[self::Foo::staticFunction.+(1)], <dynamic, dynamic>{}, null)); | |
| 48 throw new core::NoSuchMethodError::•(null, #staticGetter, <dynamic>[self::Fo
o::staticGetter.+(1)], <dynamic, dynamic>{}, null); | |
| 49 self::use(throw new core::NoSuchMethodError::•(null, #staticGetter, <dynamic
>[self::Foo::staticGetter.+(1)], <dynamic, dynamic>{}, null)); | |
| 50 self::Foo::staticSetter = (throw new core::NoSuchMethodError::•(null, #stati
cSetter, <dynamic>[], <dynamic, dynamic>{}, null)).+(1); | |
| 51 self::use(self::Foo::staticSetter = (throw new core::NoSuchMethodError::•(nu
ll, #staticSetter, <dynamic>[], <dynamic, dynamic>{}, null)).+(1)); | |
| 52 self::Foo::staticConstant.call(); | |
| 53 self::use(self::Foo::staticConstant.call()); | |
| 54 self::Foo::staticField.call(); | |
| 55 self::use(self::Foo::staticField.call()); | |
| 56 self::Foo::staticFunction(); | |
| 57 self::use(self::Foo::staticFunction()); | |
| 58 self::Foo::staticGetter(); | |
| 59 self::use(self::Foo::staticGetter()); | |
| 60 throw new core::NoSuchMethodError::•(null, #staticSetter, <dynamic>[], <dyna
mic, dynamic>{}, null); | |
| 61 self::use(throw new core::NoSuchMethodError::•(null, #staticSetter, <dynamic
>[], <dynamic, dynamic>{}, null)); | |
| 62 throw new core::NoSuchMethodError::•(null, #staticConstant, <dynamic>[87], <
dynamic, dynamic>{}, null); | |
| 63 self::use(throw new core::NoSuchMethodError::•(null, #staticConstant, <dynam
ic>[87], <dynamic, dynamic>{}, null)); | |
| 64 self::Foo::staticField = 87; | |
| 65 self::use(self::Foo::staticField = 87); | |
| 66 throw new core::NoSuchMethodError::•(null, #staticFunction, <dynamic>[87], <
dynamic, dynamic>{}, null); | |
| 67 self::use(throw new core::NoSuchMethodError::•(null, #staticFunction, <dynam
ic>[87], <dynamic, dynamic>{}, null)); | |
| 68 throw new core::NoSuchMethodError::•(null, #staticGetter, <dynamic>[87], <dy
namic, dynamic>{}, null); | |
| 69 self::use(throw new core::NoSuchMethodError::•(null, #staticGetter, <dynamic
>[87], <dynamic, dynamic>{}, null)); | |
| 70 self::Foo::staticSetter = 87; | |
| 71 self::use(self::Foo::staticSetter = 87); | |
| 72 self::Foo::staticConstant.==(null) ? throw new core::NoSuchMethodError::•(nu
ll, #staticConstant, <dynamic>[87], <dynamic, dynamic>{}, null) : null; | |
| 73 self::use(let final dynamic #t11 = self::Foo::staticConstant in #t11.==(null
) ? throw new core::NoSuchMethodError::•(null, #staticConstant, <dynamic>[87], <
dynamic, dynamic>{}, null) : #t11); | |
| 74 self::Foo::staticField.==(null) ? self::Foo::staticField = 87 : null; | |
| 75 self::use(let final dynamic #t12 = self::Foo::staticField in #t12.==(null) ?
self::Foo::staticField = 87 : #t12); | |
| 76 self::Foo::staticFunction.==(null) ? throw new core::NoSuchMethodError::•(nu
ll, #staticFunction, <dynamic>[87], <dynamic, dynamic>{}, null) : null; | |
| 77 self::use(let final dynamic #t13 = self::Foo::staticFunction in #t13.==(null
) ? throw new core::NoSuchMethodError::•(null, #staticFunction, <dynamic>[87], <
dynamic, dynamic>{}, null) : #t13); | |
| 78 self::Foo::staticGetter.==(null) ? throw new core::NoSuchMethodError::•(null
, #staticGetter, <dynamic>[87], <dynamic, dynamic>{}, null) : null; | |
| 79 self::use(let final dynamic #t14 = self::Foo::staticGetter in #t14.==(null)
? throw new core::NoSuchMethodError::•(null, #staticGetter, <dynamic>[87], <dyna
mic, dynamic>{}, null) : #t14); | |
| 80 (throw new core::NoSuchMethodError::•(null, #staticSetter, <dynamic>[], <dyn
amic, dynamic>{}, null)).==(null) ? self::Foo::staticSetter = 87 : null; | |
| 81 self::use(let final dynamic #t15 = throw new core::NoSuchMethodError::•(null
, #staticSetter, <dynamic>[], <dynamic, dynamic>{}, null) in #t15.==(null) ? sel
f::Foo::staticSetter = 87 : #t15); | |
| 82 } | |
| 83 on core::NoSuchMethodError catch(no-exception-var) { | |
| 84 } | |
| 85 } | |
| OLD | NEW |