|
| 1 | +var _initStatic, _initClass, _accessorDecs, _init_accessor, _init_extra_accessor, _getterDecs, _setterDecs, _methodDecs, _propertyDecs, _init_property, _init_extra_property, _temp; |
| 2 | +let original, replaced, accessorThis, getterThis, setterThis, methodThis, propertyThis; |
| 3 | +function dec(Klass) { |
| 4 | + original = Klass; |
| 5 | + replaced = class extends Klass {}; |
| 6 | + return replaced; |
| 7 | +} |
| 8 | +function captureInitializerThis(callback) { |
| 9 | + return function (_, context) { |
| 10 | + context.addInitializer(function () { |
| 11 | + callback(this); |
| 12 | + }); |
| 13 | + }; |
| 14 | +} |
| 15 | +_accessorDecs = captureInitializerThis(v => accessorThis = v); |
| 16 | +_getterDecs = captureInitializerThis(v => getterThis = v); |
| 17 | +_setterDecs = captureInitializerThis(v => setterThis = v); |
| 18 | +_methodDecs = captureInitializerThis(v => methodThis = v); |
| 19 | +_propertyDecs = captureInitializerThis(v => propertyThis = v); |
| 20 | +let _Foo; |
| 21 | +new (_temp = class extends babelHelpers.identity { |
| 22 | + constructor() { |
| 23 | + (super(_Foo), babelHelpers.defineProperty(this, "accessor", _init_accessor(this)), babelHelpers.defineProperty(this, "property", (_init_extra_accessor(this), _init_property(this)))), (() => { |
| 24 | + _init_extra_property(this); |
| 25 | + })(), _initClass(); |
| 26 | + } |
| 27 | +}, (_Foo2 => { |
| 28 | + class Foo { |
| 29 | + static get getter() {} |
| 30 | + static set setter(_) {} |
| 31 | + static method() {} |
| 32 | + } |
| 33 | + _Foo2 = Foo; |
| 34 | + (() => { |
| 35 | + ({ |
| 36 | + e: [_init_accessor, _init_extra_accessor, _init_property, _init_extra_property, _initStatic], |
| 37 | + c: [_Foo, _initClass] |
| 38 | + } = babelHelpers.applyDecs2311(_Foo2, [[_getterDecs, 11, "getter"], [_setterDecs, 12, "setter"], [_methodDecs, 10, "method"], [_accessorDecs, 8, "accessor"], [_propertyDecs, 8, "property"]], [dec])); |
| 39 | + _initStatic(_Foo2); |
| 40 | + })(); |
| 41 | +})(), _temp)(); |
0 commit comments