Debian Codegraph @

packages/babel-parser/test/fixtures/es2022/class-private-properties/pbn-success/input.js

raw symbols SCIP
1 class Point {
2 #x = 1;
3 #y = 2;
4
5 constructor(x = 0, y = 0) {
6 this.#x = +x;
7 this.#y = +y;
8 }
9
10 get x() { return this.#x }
11 set x(value) { this.#x = +value }
12
13 get y() { return this.#y }
14 set y(value) { this.#y = +value }
15
16 equals(p) { return this.#x === p.#x && this.#y === p.#y }
17
18 toString() { return `Point<${ this.#x },${ this.#y }>` }
19 }