(files: Record<string, string>)
| 15 | let cg: CodeGraph | null = null; |
| 16 | |
| 17 | async function index(files: Record<string, string>): Promise<void> { |
| 18 | tempDir = fs.mkdtempSync(path.join(os.tmpdir(), 'codegraph-static-instance-recv-')); |
| 19 | for (const [rel, content] of Object.entries(files)) { |
| 20 | const abs = path.join(tempDir, rel); |
| 21 | fs.mkdirSync(path.dirname(abs), { recursive: true }); |
| 22 | fs.writeFileSync(abs, content); |
| 23 | } |
| 24 | cg = await CodeGraph.init(tempDir, { index: true }); |
| 25 | } |
| 26 | |
| 27 | /** The methods the function with this name calls, as `qualifiedName (file:line)`. */ |
| 28 | function methodsCalledBy(name: string): string[] { |
no test coverage detected