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

Function node

__tests__/dart-primary-constructors.test.ts:258–262  ·  view source on GitHub ↗
(file: string, qualifiedName: string)

Source from the content-addressed store, hash-verified

256 cg = await CodeGraph.init(root, { index: true });
257 const graph = cg;
258 const node = (file: string, qualifiedName: string): Node => {
259 const found = graph.getNodesInFile(file).find((n) => n.qualifiedName === qualifiedName);
260 expect(found, qualifiedName).toBeDefined();
261 return found!;
262 };
263 const targets = (file: string, from: string, kind: string): string[] =>
264 [...new Set(graph
265 .getOutgoingEdgesFrom([node(file, from).id])

Callers 2

targetsFunction · 0.70

Calls 1

getNodesInFileMethod · 0.65

Tested by

no test coverage detected