OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/conditional_property_access_test_none_multi', nul
l, /* Imports */[ |
| 2 'dart_sdk' |
| 3 ], function load__conditional_property_access_test_none_multi(exports, dart_sdk)
{ |
| 4 'use strict'; |
| 5 const core = dart_sdk.core; |
| 6 const dart = dart_sdk.dart; |
| 7 const dartx = dart_sdk.dartx; |
| 8 const conditional_property_access_test_none_multi = Object.create(null); |
| 9 const conditional_access_helper = Object.create(null); |
| 10 let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFun
ctionType(dart.dynamic, [dart.dynamic])))(); |
| 11 let VoidToC = () => (VoidToC = dart.constFn(dart.definiteFunctionType(conditio
nal_property_access_test_none_multi.C, [])))(); |
| 12 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 13 let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(da
rt.void, [])))(); |
| 14 let VoidToC$ = () => (VoidToC$ = dart.constFn(dart.definiteFunctionType(condit
ional_access_helper.C, [])))(); |
| 15 conditional_property_access_test_none_multi.noMethod = function(e) { |
| 16 return core.NoSuchMethodError.is(e); |
| 17 }; |
| 18 dart.fn(conditional_property_access_test_none_multi.noMethod, dynamicTodynamic
()); |
| 19 conditional_property_access_test_none_multi.B = class B extends core.Object {}
; |
| 20 conditional_property_access_test_none_multi.C = class C extends conditional_pr
operty_access_test_none_multi.B { |
| 21 new(v) { |
| 22 this.v = v; |
| 23 } |
| 24 }; |
| 25 dart.setSignature(conditional_property_access_test_none_multi.C, { |
| 26 constructors: () => ({new: dart.definiteFunctionType(conditional_property_ac
cess_test_none_multi.C, [core.int])}) |
| 27 }); |
| 28 conditional_property_access_test_none_multi.C.staticInt = null; |
| 29 conditional_property_access_test_none_multi.nullC = function() { |
| 30 return null; |
| 31 }; |
| 32 dart.fn(conditional_property_access_test_none_multi.nullC, VoidToC()); |
| 33 conditional_property_access_test_none_multi.main = function() { |
| 34 dart.nullSafe(conditional_property_access_test_none_multi.nullC(), _ => _.v)
; |
| 35 }; |
| 36 dart.fn(conditional_property_access_test_none_multi.main, VoidTodynamic()); |
| 37 conditional_access_helper.topLevelVar = null; |
| 38 conditional_access_helper.topLevelFunction = function() { |
| 39 }; |
| 40 dart.fn(conditional_access_helper.topLevelFunction, VoidTovoid()); |
| 41 conditional_access_helper.C = class C extends core.Object { |
| 42 static staticF(callback) { |
| 43 return callback(); |
| 44 } |
| 45 static staticG(callback) { |
| 46 return callback(); |
| 47 } |
| 48 }; |
| 49 dart.setSignature(conditional_access_helper.C, { |
| 50 statics: () => ({ |
| 51 staticF: dart.definiteFunctionType(dart.dynamic, [dart.functionType(dart.d
ynamic, [])]), |
| 52 staticG: dart.definiteFunctionType(core.int, [dart.functionType(core.int,
[])]) |
| 53 }), |
| 54 names: ['staticF', 'staticG'] |
| 55 }); |
| 56 conditional_access_helper.C.staticInt = null; |
| 57 conditional_access_helper.nullC = function() { |
| 58 return null; |
| 59 }; |
| 60 dart.fn(conditional_access_helper.nullC, VoidToC$()); |
| 61 conditional_access_helper.D = class D extends core.Object {}; |
| 62 conditional_access_helper.D.staticE = null; |
| 63 conditional_access_helper.E = class E extends core.Object { |
| 64 ['+'](i) { |
| 65 return new conditional_access_helper.I(); |
| 66 } |
| 67 ['-'](i) { |
| 68 return new conditional_access_helper.I(); |
| 69 } |
| 70 }; |
| 71 dart.setSignature(conditional_access_helper.E, { |
| 72 methods: () => ({ |
| 73 '+': dart.definiteFunctionType(conditional_access_helper.G, [core.int]), |
| 74 '-': dart.definiteFunctionType(conditional_access_helper.G, [core.int]) |
| 75 }) |
| 76 }); |
| 77 conditional_access_helper.F = class F extends core.Object {}; |
| 78 conditional_access_helper.G = class G extends conditional_access_helper.E {}; |
| 79 conditional_access_helper.G[dart.implements] = () => [conditional_access_helpe
r.F]; |
| 80 conditional_access_helper.H = class H extends core.Object {}; |
| 81 conditional_access_helper.I = class I extends conditional_access_helper.G {}; |
| 82 conditional_access_helper.I[dart.implements] = () => [conditional_access_helpe
r.H]; |
| 83 // Exports: |
| 84 exports.conditional_property_access_test_none_multi = conditional_property_acc
ess_test_none_multi; |
| 85 exports.conditional_access_helper = conditional_access_helper; |
| 86 }); |
OLD | NEW |