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

Function index

__tests__/pascal-reference-boundaries.test.ts:37–41  ·  view source on GitHub ↗
(files: Record<string, string>)

Source from the content-addressed store, hash-verified

35});
36
37async 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
43function routine(qualifiedName: string) {
44 const node = graph!.getNodesByKind('method').concat(graph!.getNodesByKind('function')).find((n) => n.qualifiedName === qualifiedName);

Calls 2

joinMethod · 0.45
initMethod · 0.45

Tested by

no test coverage detected