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

Function write

__tests__/python-from-import-module-file.test.ts:20–25  ·  view source on GitHub ↗
(files: Record<string, string>)

Source from the content-addressed store, hash-verified

18let cg: CodeGraph | null = null;
19
20function write(files: Record<string, string>): void {
21 for (const [rel, source] of Object.entries(files)) {
22 fs.mkdirSync(path.dirname(path.join(tempDir, rel)), { recursive: true });
23 fs.writeFileSync(path.join(tempDir, rel), source);
24 }
25}
26
27/** `kind:name@file` of every target of an `imports` edge from `fromFile`'s file node, sorted. */
28function importEdges(fromFile: string): string[] {

Callers 2

indexedFunction · 0.70

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected