mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
28 lines
571 B
JSON
28 lines
571 B
JSON
// === findAllReferences ===
|
|
// === /a.js ===
|
|
// import { infer } from "./infer";
|
|
// infer({
|
|
// m() {
|
|
// this.[|x|] = 1;
|
|
// this./*FIND ALL REFS*/[|x|];
|
|
// },
|
|
// });
|
|
|
|
// === /infer.d.ts ===
|
|
// export declare function infer(o: { m(): void } & ThisType<{ [|x|]: number }>): void;
|
|
|
|
|
|
|
|
// === findAllReferences ===
|
|
// === /b.js ===
|
|
// /**
|
|
// * @template T
|
|
// * @param {{m(): void} & ThisType<{[|x|]: number}>} o
|
|
// */
|
|
// function infer(o) {}
|
|
// infer({
|
|
// m() {
|
|
// this.[|x|] = 2;
|
|
// this./*FIND ALL REFS*/[|x|];
|
|
// },
|
|
// }); |