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

Function writeTree

__tests__/dart-library-visibility.test.ts:17–22  ·  view source on GitHub ↗
(root: string, files: Record<string, string>)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected