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

Function node

__tests__/dart-initializer-calls.test.ts:165–169  ·  view source on GitHub ↗
(file: string, qualifiedName: string)

Source from the content-addressed store, hash-verified

163 cg = await CodeGraph.init(root, { index: true });
164 const graph = cg;
165 const node = (file: string, qualifiedName: string): Node => {
166 const found = graph.getNodesInFile(file).find((n) => n.qualifiedName === qualifiedName);
167 expect(found, `${file} ${qualifiedName}`).toBeDefined();
168 return found!;
169 };
170 const targets = (from: Node, kind: string): string[] =>
171 [...new Set(graph
172 .getOutgoingEdgesFrom([from.id])

Callers 1

Calls 1

getNodesInFileMethod · 0.65

Tested by

no test coverage detected