mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
109 lines
1.6 KiB
JSON
109 lines
1.6 KiB
JSON
// === findAllReferences ===
|
|
// === /c1.ts ===
|
|
// class C1 {
|
|
// /*FIND ALL REFS*/[|x|]() {}
|
|
// constructor(public x: number) {
|
|
// [|x|]++;
|
|
// }
|
|
// }
|
|
// new C1(1).[|x|];
|
|
//
|
|
|
|
|
|
|
|
// === findAllReferences ===
|
|
// === /c1.ts ===
|
|
// class C1 {
|
|
// x() {}
|
|
// constructor(public /*FIND ALL REFS*/[|x|]: number) {
|
|
// [|x|]++;
|
|
// }
|
|
// }
|
|
// new C1(1).x;
|
|
//
|
|
|
|
|
|
|
|
// === findAllReferences ===
|
|
// === /c1.ts ===
|
|
// class C1 {
|
|
// [|x|]() {}
|
|
// constructor(public [|x|]: number) {
|
|
// /*FIND ALL REFS*/[|x|]++;
|
|
// }
|
|
// }
|
|
// new C1(1).x;
|
|
//
|
|
|
|
|
|
|
|
// === findAllReferences ===
|
|
// === /c1.ts ===
|
|
// class C1 {
|
|
// [|x|]() {}
|
|
// constructor(public x: number) {
|
|
// [|x|]++;
|
|
// }
|
|
// }
|
|
// new C1(1)./*FIND ALL REFS*/[|x|];
|
|
//
|
|
|
|
|
|
|
|
// === findAllReferences ===
|
|
// === /c2.ts ===
|
|
// interface C2 {
|
|
// get /*FIND ALL REFS*/[|x|](): void
|
|
// }
|
|
// class C2 {
|
|
// constructor(public [|x|]: number) {
|
|
// [|x|]++;
|
|
// }
|
|
// }
|
|
// new C2(1).[|x|];
|
|
//
|
|
|
|
|
|
|
|
// === findAllReferences ===
|
|
// === /c2.ts ===
|
|
// interface C2 {
|
|
// get [|x|](): void
|
|
// }
|
|
// class C2 {
|
|
// constructor(public /*FIND ALL REFS*/[|x|]: number) {
|
|
// [|x|]++;
|
|
// }
|
|
// }
|
|
// new C2(1).[|x|];
|
|
//
|
|
|
|
|
|
|
|
// === findAllReferences ===
|
|
// === /c2.ts ===
|
|
// interface C2 {
|
|
// get x(): void
|
|
// }
|
|
// class C2 {
|
|
// constructor(public [|x|]: number) {
|
|
// /*FIND ALL REFS*/[|x|]++;
|
|
// }
|
|
// }
|
|
// new C2(1).x;
|
|
//
|
|
|
|
|
|
|
|
// === findAllReferences ===
|
|
// === /c2.ts ===
|
|
// interface C2 {
|
|
// get [|x|](): void
|
|
// }
|
|
// class C2 {
|
|
// constructor(public [|x|]: number) {
|
|
// [|x|]++;
|
|
// }
|
|
// }
|
|
// new C2(1)./*FIND ALL REFS*/[|x|];
|
|
// |