OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/conditional_property_increment_decrement_test_19_
multi', null, /* Imports */[ |
| 2 'dart_sdk', |
| 3 'expect' |
| 4 ], function load__conditional_property_increment_decrement_test_19_multi(exports
, dart_sdk, expect) { |
| 5 'use strict'; |
| 6 const core = dart_sdk.core; |
| 7 const dart = dart_sdk.dart; |
| 8 const dartx = dart_sdk.dartx; |
| 9 const expect$ = expect.expect; |
| 10 const conditional_property_increment_decrement_test_19_multi = Object.create(n
ull); |
| 11 const conditional_access_helper = Object.create(null); |
| 12 let VoidToC = () => (VoidToC = dart.constFn(dart.definiteFunctionType(conditio
nal_property_increment_decrement_test_19_multi.C, [])))(); |
| 13 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 14 let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(da
rt.void, [])))(); |
| 15 let VoidToC$ = () => (VoidToC$ = dart.constFn(dart.definiteFunctionType(condit
ional_access_helper.C, [])))(); |
| 16 conditional_property_increment_decrement_test_19_multi.C = class C extends cor
e.Object { |
| 17 new(v) { |
| 18 this.v = v; |
| 19 } |
| 20 }; |
| 21 dart.setSignature(conditional_property_increment_decrement_test_19_multi.C, { |
| 22 constructors: () => ({new: dart.definiteFunctionType(conditional_property_in
crement_decrement_test_19_multi.C, [core.int])}) |
| 23 }); |
| 24 conditional_property_increment_decrement_test_19_multi.C.staticInt = null; |
| 25 conditional_property_increment_decrement_test_19_multi.D = class D extends cor
e.Object { |
| 26 new(v) { |
| 27 this.v = v; |
| 28 } |
| 29 }; |
| 30 dart.setSignature(conditional_property_increment_decrement_test_19_multi.D, { |
| 31 constructors: () => ({new: dart.definiteFunctionType(conditional_property_in
crement_decrement_test_19_multi.D, [conditional_property_increment_decrement_tes
t_19_multi.E])}) |
| 32 }); |
| 33 conditional_property_increment_decrement_test_19_multi.D.staticE = null; |
| 34 conditional_property_increment_decrement_test_19_multi.E = class E extends cor
e.Object { |
| 35 ['+'](i) { |
| 36 return new conditional_property_increment_decrement_test_19_multi.I(); |
| 37 } |
| 38 ['-'](i) { |
| 39 return new conditional_property_increment_decrement_test_19_multi.I(); |
| 40 } |
| 41 }; |
| 42 dart.setSignature(conditional_property_increment_decrement_test_19_multi.E, { |
| 43 methods: () => ({ |
| 44 '+': dart.definiteFunctionType(conditional_property_increment_decrement_te
st_19_multi.G, [core.int]), |
| 45 '-': dart.definiteFunctionType(conditional_property_increment_decrement_te
st_19_multi.G, [core.int]) |
| 46 }) |
| 47 }); |
| 48 conditional_property_increment_decrement_test_19_multi.F = class F extends cor
e.Object {}; |
| 49 conditional_property_increment_decrement_test_19_multi.G = class G extends con
ditional_property_increment_decrement_test_19_multi.E {}; |
| 50 conditional_property_increment_decrement_test_19_multi.G[dart.implements] = ()
=> [conditional_property_increment_decrement_test_19_multi.F]; |
| 51 conditional_property_increment_decrement_test_19_multi.H = class H extends cor
e.Object {}; |
| 52 conditional_property_increment_decrement_test_19_multi.I = class I extends con
ditional_property_increment_decrement_test_19_multi.G {}; |
| 53 conditional_property_increment_decrement_test_19_multi.I[dart.implements] = ()
=> [conditional_property_increment_decrement_test_19_multi.H]; |
| 54 conditional_property_increment_decrement_test_19_multi.nullC = function() { |
| 55 return null; |
| 56 }; |
| 57 dart.fn(conditional_property_increment_decrement_test_19_multi.nullC, VoidToC(
)); |
| 58 conditional_property_increment_decrement_test_19_multi.main = function() { |
| 59 let l = conditional_property_increment_decrement_test_19_multi.nullC(); |
| 60 l == null ? null : l.v = 1; |
| 61 { |
| 62 let e1 = new conditional_property_increment_decrement_test_19_multi.E(); |
| 63 conditional_property_increment_decrement_test_19_multi.D.staticE = e1; |
| 64 let o = conditional_property_increment_decrement_test_19_multi.D; |
| 65 let e2 = dart.nullSafe(o, _ => _.staticE); |
| 66 o == null ? null : conditional_property_increment_decrement_test_19_multi.
D.staticE = e2['+'](1); |
| 67 expect$.Expect.identical(e1, e2); |
| 68 } |
| 69 }; |
| 70 dart.fn(conditional_property_increment_decrement_test_19_multi.main, VoidTodyn
amic()); |
| 71 conditional_access_helper.topLevelVar = null; |
| 72 conditional_access_helper.topLevelFunction = function() { |
| 73 }; |
| 74 dart.fn(conditional_access_helper.topLevelFunction, VoidTovoid()); |
| 75 conditional_access_helper.C = class C extends core.Object { |
| 76 static staticF(callback) { |
| 77 return callback(); |
| 78 } |
| 79 static staticG(callback) { |
| 80 return callback(); |
| 81 } |
| 82 }; |
| 83 dart.setSignature(conditional_access_helper.C, { |
| 84 statics: () => ({ |
| 85 staticF: dart.definiteFunctionType(dart.dynamic, [dart.functionType(dart.d
ynamic, [])]), |
| 86 staticG: dart.definiteFunctionType(core.int, [dart.functionType(core.int,
[])]) |
| 87 }), |
| 88 names: ['staticF', 'staticG'] |
| 89 }); |
| 90 conditional_access_helper.C.staticInt = null; |
| 91 conditional_access_helper.nullC = function() { |
| 92 return null; |
| 93 }; |
| 94 dart.fn(conditional_access_helper.nullC, VoidToC$()); |
| 95 conditional_access_helper.D = class D extends core.Object {}; |
| 96 conditional_access_helper.D.staticE = null; |
| 97 conditional_access_helper.E = class E extends core.Object { |
| 98 ['+'](i) { |
| 99 return new conditional_access_helper.I(); |
| 100 } |
| 101 ['-'](i) { |
| 102 return new conditional_access_helper.I(); |
| 103 } |
| 104 }; |
| 105 dart.setSignature(conditional_access_helper.E, { |
| 106 methods: () => ({ |
| 107 '+': dart.definiteFunctionType(conditional_access_helper.G, [core.int]), |
| 108 '-': dart.definiteFunctionType(conditional_access_helper.G, [core.int]) |
| 109 }) |
| 110 }); |
| 111 conditional_access_helper.F = class F extends core.Object {}; |
| 112 conditional_access_helper.G = class G extends conditional_access_helper.E {}; |
| 113 conditional_access_helper.G[dart.implements] = () => [conditional_access_helpe
r.F]; |
| 114 conditional_access_helper.H = class H extends core.Object {}; |
| 115 conditional_access_helper.I = class I extends conditional_access_helper.G {}; |
| 116 conditional_access_helper.I[dart.implements] = () => [conditional_access_helpe
r.H]; |
| 117 // Exports: |
| 118 exports.conditional_property_increment_decrement_test_19_multi = conditional_p
roperty_increment_decrement_test_19_multi; |
| 119 exports.conditional_access_helper = conditional_access_helper; |
| 120 }); |
OLD | NEW |