(files: Record<string, string>)
| 35 | }); |
| 36 | |
| 37 | async function index(files: Record<string, string>): Promise<CodeGraph> { |
| 38 | for (const [name, text] of Object.entries(files)) fs.writeFileSync(path.join(directory, name), text); |
| 39 | graph = await CodeGraph.init(directory, { index: true }); |
| 40 | return graph; |
| 41 | } |
| 42 | |
| 43 | function routine(qualifiedName: string) { |
| 44 | const node = graph!.getNodesByKind('method').concat(graph!.getNodesByKind('function')).find((n) => n.qualifiedName === qualifiedName); |
no test coverage detected