Debian Codegraph @

packages/babel-plugin-proposal-private-methods/test/fixtures/private-method/read-only/input.js

raw
1 class A {
2 counter = 0;
3 #method() {}
4 self() {
5 this.counter++;
6 return this;
7 }
8
9 constructor() {
10 this.self().#method = 2;
11 ([this.#method] = [2]);
12 }
13 }