Debian Codegraph @

packages/babel-plugin-proposal-class-properties/test/fixtures/private/static-inherited/input.js

raw symbols SCIP
1 class Base {
2 static #foo = 1;
3
4 static getThis() {
5 return this.#foo;
6 }
7
8 static updateThis(val) {
9 return (this.#foo = val);
10 }
11
12 static getClass() {
13 return Base.#foo;
14 }
15
16 static updateClass(val) {
17 return (Base.#foo = val);
18 }
19 }
20
21 class Sub1 extends Base {
22 static #foo = 2;
23
24 static update(val) {
25 return (this.#foo = val);
26 }
27 }
28
29 class Sub2 extends Base {}