|
| 1 | +=== tests/cases/conformance/classes/members/privateNames/privateNameFieldsESNextNested.ts === |
| 2 | +class C { |
| 3 | +>C : Symbol(C, Decl(privateNameFieldsESNextNested.ts, 0, 0)) |
| 4 | + |
| 5 | + // public fields should be transformed |
| 6 | + foo; |
| 7 | +>foo : Symbol(C.foo, Decl(privateNameFieldsESNextNested.ts, 0, 9)) |
| 8 | + |
| 9 | + bar = "hi bar"; |
| 10 | +>bar : Symbol(C.bar, Decl(privateNameFieldsESNextNested.ts, 2, 8)) |
| 11 | + |
| 12 | + baz = () => { |
| 13 | +>baz : Symbol(C.baz, Decl(privateNameFieldsESNextNested.ts, 3, 19)) |
| 14 | + |
| 15 | + class D { |
| 16 | +>D : Symbol(D, Decl(privateNameFieldsESNextNested.ts, 4, 17)) |
| 17 | + |
| 18 | + // public fields should be transformed |
| 19 | + foo; |
| 20 | +>foo : Symbol(D.foo, Decl(privateNameFieldsESNextNested.ts, 5, 17)) |
| 21 | + |
| 22 | + bar = "hi bar nested under baz"; |
| 23 | +>bar : Symbol(D.bar, Decl(privateNameFieldsESNextNested.ts, 7, 16)) |
| 24 | + |
| 25 | + // #private fields should not be transformed |
| 26 | + #foo; |
| 27 | +>#foo : Symbol(D.#foo, Decl(privateNameFieldsESNextNested.ts, 8, 44)) |
| 28 | + |
| 29 | + #bar = "hi #bar nested under baz" |
| 30 | +>#bar : Symbol(D.#bar, Decl(privateNameFieldsESNextNested.ts, 10, 17)) |
| 31 | + } |
| 32 | + } |
| 33 | + // #private fields should not be transformed |
| 34 | + #foo; |
| 35 | +>#foo : Symbol(C.#foo, Decl(privateNameFieldsESNextNested.ts, 13, 5)) |
| 36 | + |
| 37 | + #bar = "hi #bar" |
| 38 | +>#bar : Symbol(C.#bar, Decl(privateNameFieldsESNextNested.ts, 15, 9)) |
| 39 | + |
| 40 | + #baz = () => { |
| 41 | +>#baz : Symbol(C.#baz, Decl(privateNameFieldsESNextNested.ts, 16, 20)) |
| 42 | + |
| 43 | + class D { |
| 44 | +>D : Symbol(D, Decl(privateNameFieldsESNextNested.ts, 17, 18)) |
| 45 | + |
| 46 | + // public fields should be transformed |
| 47 | + foo; |
| 48 | +>foo : Symbol(D.foo, Decl(privateNameFieldsESNextNested.ts, 18, 17)) |
| 49 | + |
| 50 | + bar = "hi bar nested under #baz"; |
| 51 | +>bar : Symbol(D.bar, Decl(privateNameFieldsESNextNested.ts, 20, 16)) |
| 52 | + |
| 53 | + // #private fields should not be transformed |
| 54 | + #foo; |
| 55 | +>#foo : Symbol(D.#foo, Decl(privateNameFieldsESNextNested.ts, 21, 45)) |
| 56 | + |
| 57 | + #bar = "hi #bar nested under #baz" |
| 58 | +>#bar : Symbol(D.#bar, Decl(privateNameFieldsESNextNested.ts, 23, 17)) |
| 59 | + } |
| 60 | + } |
| 61 | +} |
| 62 | + |
0 commit comments