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

Function writeTree

__tests__/dart-part-privacy.test.ts:16–21  ·  view source on GitHub ↗
(root: string, files: Record<string, string>)

Source from the content-addressed store, hash-verified

14import { CodeGraph } from '../src';
15
16function writeTree(root: string, files: Record<string, string>): void {
17 for (const [rel, content] of Object.entries(files)) {
18 fs.mkdirSync(path.dirname(path.join(root, rel)), { recursive: true });
19 fs.writeFileSync(path.join(root, rel), content);
20 }
21}
22
23/** `<source qualified name> -> <target file>:<target qualified name>` for every `calls` edge out of `files`. */
24function callEdges(cg: CodeGraph, files: string[]): string[] {

Callers 1

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected