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

Function index

__tests__/php-web-root-includes.test.ts:40–45  ·  view source on GitHub ↗
(files: Files)

Source from the content-addressed store, hash-verified

38}
39
40async function index(files: Files): Promise<CodeGraph> {
41 root = fs.mkdtempSync(path.join(os.tmpdir(), 'cg-php-web-root-'));
42 write(root, files);
43 cg = await CodeGraph.init(root, { index: true });
44 return cg;
45}
46
47/** The files anything in `file` imports (the file, or its namespace), sorted. */
48function importsOf(graph: CodeGraph, file: string): string[] {

Callers 1

Calls 3

writeFunction · 0.70
joinMethod · 0.45
initMethod · 0.45

Tested by

no test coverage detected