File: autoAccessor3%28target%3Des2022%29.js

package info (click to toggle)
node-typescript 5.0.4%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 459,140 kB
  • sloc: javascript: 1,972,754; makefile: 6; sh: 1
file content (24 lines) | stat: -rw-r--r-- 792 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//// [autoAccessor3.ts]
class C1 {
    accessor "w": any;
    accessor "x" = 1;
    static accessor "y": any;
    static accessor "z" = 2;
}


//// [autoAccessor3.js]
class C1 {
    #_a_accessor_storage;
    get "w"() { return this.#_a_accessor_storage; }
    set "w"(value) { this.#_a_accessor_storage = value; }
    #_b_accessor_storage = 1;
    get "x"() { return this.#_b_accessor_storage; }
    set "x"(value) { this.#_b_accessor_storage = value; }
    static #_c_accessor_storage;
    static get "y"() { return this.#_c_accessor_storage; }
    static set "y"(value) { this.#_c_accessor_storage = value; }
    static #_d_accessor_storage = 2;
    static get "z"() { return this.#_d_accessor_storage; }
    static set "z"(value) { this.#_d_accessor_storage = value; }
}