1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
//// [autoAccessor5.ts]
class C1 {
accessor ["w"]: any;
accessor ["x"] = 1;
static accessor ["y"]: any;
static accessor ["z"] = 2;
}
declare var f: any;
class C2 {
accessor [f()] = 1;
}
//// [autoAccessor5.js]
var _a;
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; }
}
class C2 {
#_e_accessor_storage = 1;
get [(_a = f(), _a)]() { return this.#_e_accessor_storage; }
set [_a](value) { this.#_e_accessor_storage = value; }
}
|