mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
69 lines
1.3 KiB
JSON
69 lines
1.3 KiB
JSON
// === findAllReferences ===
|
|
// === /findAllRefsDestructureGetter.ts ===
|
|
// class Test {
|
|
// get /*FIND ALL REFS*/[|x|]() { return 0; }
|
|
//
|
|
// set y(a: number) {}
|
|
// }
|
|
// const { [|x|], y } = new Test();
|
|
// x; y;
|
|
|
|
|
|
|
|
// === findAllReferences ===
|
|
// === /findAllRefsDestructureGetter.ts ===
|
|
// class Test {
|
|
// get [|x|]() { return 0; }
|
|
//
|
|
// set y(a: number) {}
|
|
// }
|
|
// const { /*FIND ALL REFS*/[|x|], y } = new Test();
|
|
// [|x|]; y;
|
|
|
|
|
|
|
|
// === findAllReferences ===
|
|
// === /findAllRefsDestructureGetter.ts ===
|
|
// class Test {
|
|
// get x() { return 0; }
|
|
//
|
|
// set y(a: number) {}
|
|
// }
|
|
// const { [|x|], y } = new Test();
|
|
// /*FIND ALL REFS*/[|x|]; y;
|
|
|
|
|
|
|
|
// === findAllReferences ===
|
|
// === /findAllRefsDestructureGetter.ts ===
|
|
// class Test {
|
|
// get x() { return 0; }
|
|
//
|
|
// set /*FIND ALL REFS*/[|y|](a: number) {}
|
|
// }
|
|
// const { x, [|y|] } = new Test();
|
|
// x; y;
|
|
|
|
|
|
|
|
// === findAllReferences ===
|
|
// === /findAllRefsDestructureGetter.ts ===
|
|
// class Test {
|
|
// get x() { return 0; }
|
|
//
|
|
// set [|y|](a: number) {}
|
|
// }
|
|
// const { x, /*FIND ALL REFS*/[|y|] } = new Test();
|
|
// x; [|y|];
|
|
|
|
|
|
|
|
// === findAllReferences ===
|
|
// === /findAllRefsDestructureGetter.ts ===
|
|
// class Test {
|
|
// get x() { return 0; }
|
|
//
|
|
// set y(a: number) {}
|
|
// }
|
|
// const { x, [|y|] } = new Test();
|
|
// x; /*FIND ALL REFS*/[|y|]; |