MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / index

Function index

__tests__/python-overload-stubs.test.ts:19–24  ·  view source on GitHub ↗
(files: Record<string, string>)

Source from the content-addressed store, hash-verified

17let cg: CodeGraph | null = null;
18
19async function index(files: Record<string, string>): Promise<CodeGraph> {
20 tempDir = fs.mkdtempSync(path.join(os.tmpdir(), 'codegraph-2963-'));
21 write(files);
22 cg = await CodeGraph.init(tempDir, { index: true });
23 return cg;
24}
25
26function write(files: Record<string, string>): void {
27 for (const [rel, source] of Object.entries(files)) {

Callers 1

Calls 3

writeFunction · 0.70
joinMethod · 0.45
initMethod · 0.45

Tested by

no test coverage detected