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 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
//// [autoAccessor10.ts]
class C1 {
accessor a0 = 1;
}
class C2 {
#a1_accessor_storage = 1;
accessor a1 = 2;
}
class C3 {
static #a2_accessor_storage = 1;
static {
class C3_Inner {
accessor a2 = 2;
static {
#a2_accessor_storage in C3;
}
}
}
}
class C4_1 {
static accessor a3 = 1;
}
class C4_2 {
static accessor a3 = 1;
}
//// [autoAccessor10.js]
class C1 {
#a0_accessor_storage = 1;
get a0() { return this.#a0_accessor_storage; }
set a0(value) { this.#a0_accessor_storage = value; }
}
class C2 {
#a1_accessor_storage = 1;
#a1_1_accessor_storage = 2;
get a1() { return this.#a1_1_accessor_storage; }
set a1(value) { this.#a1_1_accessor_storage = value; }
}
class C3 {
static #a2_accessor_storage = 1;
static {
class C3_Inner {
#a2_1_accessor_storage = 2;
get a2() { return this.#a2_1_accessor_storage; }
set a2(value) { this.#a2_1_accessor_storage = value; }
static {
#a2_accessor_storage in C3;
}
}
}
}
class C4_1 {
static #a3_accessor_storage = 1;
static get a3() { return this.#a3_accessor_storage; }
static set a3(value) { this.#a3_accessor_storage = value; }
}
class C4_2 {
static #a3_accessor_storage = 1;
static get a3() { return this.#a3_accessor_storage; }
static set a3(value) { this.#a3_accessor_storage = value; }
}
|