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

Function write

__tests__/sync-import-retry.test.ts:234–239  ·  view source on GitHub ↗
(files: Record<string, string>)

Source from the content-addressed store, hash-verified

232});
233
234function write(files: Record<string, string>): void {
235 for (const [rel, content] of Object.entries(files)) {
236 fs.mkdirSync(path.dirname(path.join(root, rel)), { recursive: true });
237 fs.writeFileSync(path.join(root, rel), content);
238 }
239}
240
241/** `<kind> <file>` for every `imports` edge out of `file`, plus how many land on one of its own import statements. */
242function importsOf(file: string): { targets: string[]; ownStatements: number } {

Callers 1

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected