packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-getters-and-setters/static-public/output.js
raw symbols SCIP| 1 | var _computedKey, _computedKey2, _initStatic; |
| 2 | const dec = () => {}; |
| 3 | _computedKey = 'b'; |
| 4 | _computedKey2 = 'b'; |
| 5 | class Foo { |
| 6 | static { |
| 7 | [_initStatic] = babelHelpers.applyDecs(this, [[dec, 8, "a"], [dec, 9, "a"], [dec, 8, _computedKey], [dec, 9, _computedKey2]], []); |
| 8 | _initStatic(this); |
| 9 | } |
| 10 | static value = 1; |
| 11 | static get a() { |
| 12 | return this.value; |
| 13 | } |
| 14 | static set a(v) { |
| 15 | this.value = v; |
| 16 | } |
| 17 | static get [_computedKey]() { |
| 18 | return this.value; |
| 19 | } |
| 20 | static set [_computedKey2](v) { |
| 21 | this.value = v; |
| 22 | } |
| 23 | } |