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

Function node

__tests__/dart-const-constructors.test.ts:204–208  ·  view source on GitHub ↗
(file: string, qualifiedName: string)

Source from the content-addressed store, hash-verified

202 const find = (file: string, qualifiedName: string): Node | undefined =>
203 graph.getNodesInFile(file).find((n) => n.qualifiedName === qualifiedName);
204 const node = (file: string, qualifiedName: string): Node => {
205 const found = find(file, qualifiedName);
206 expect(found, `${file} ${qualifiedName}`).toBeDefined();
207 return found!;
208 };
209 const targets = (from: Node, kind: string): string[] =>
210 [...new Set(graph
211 .getOutgoingEdgesFrom([from.id])

Callers 1

Calls 1

findFunction · 0.70

Tested by

no test coverage detected