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

Function node

__tests__/dart-generic-constructor-calls.test.ts:265–269  ·  view source on GitHub ↗
(qualifiedName: string)

Source from the content-addressed store, hash-verified

263 cg = await CodeGraph.init(root, { index: true });
264 const graph = cg;
265 const node = (qualifiedName: string): Node => {
266 const found = graph.getNodesInFile('lib/app.dart').find((n) => n.qualifiedName === qualifiedName);
267 expect(found, qualifiedName).toBeDefined();
268 return found!;
269 };
270 const targets = (from: string, kind: string): string[] =>
271 [...new Set(graph
272 .getOutgoingEdgesFrom([node(from).id])

Callers 1

targetsFunction · 0.70

Calls 1

getNodesInFileMethod · 0.65

Tested by

no test coverage detected