packages/babel-plugin-proposal-private-methods/test/fixtures/private-static-method-privateFieldsAsProperties/basic/input.js
raw| 1 | class Cl { |
| 2 | static staticMethod2() { |
| 3 | return Cl.#privateStaticMethod(); |
| 4 | } |
| 5 | |
| 6 | static #privateStaticMethod() { |
| 7 | return 1017; |
| 8 | } |
| 9 | |
| 10 | static staticMethod() { |
| 11 | return Cl.#privateStaticMethod(); |
| 12 | } |
| 13 | |
| 14 | static privateStaticMethod() { |
| 15 | return Cl.#privateStaticMethod(); |
| 16 | } |
| 17 | |
| 18 | publicMethod() { |
| 19 | return Cl.#privateStaticMethod(); |
| 20 | } |
| 21 | |
| 22 | constructor() { |
| 23 | this.instanceField = Cl.#privateStaticMethod(); |
| 24 | } |
| 25 | } |