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

Function node

__tests__/dart-comment-split-chains.test.ts:119–123  ·  view source on GitHub ↗
(qualifiedName: string)

Source from the content-addressed store, hash-verified

117 cg = await CodeGraph.init(root, { index: true });
118 const graph = cg;
119 const node = (qualifiedName: string): Node => {
120 const found = graph.getNodesInFile('test/scope_test.dart').find((n) => n.qualifiedName === qualifiedName);
121 expect(found, qualifiedName).toBeDefined();
122 return found!;
123 };
124 const targets = (from: string, kind: string): string[] =>
125 [...new Set(graph
126 .getOutgoingEdgesFrom([node(from).id])

Callers 1

targetsFunction · 0.70

Calls 1

getNodesInFileMethod · 0.65

Tested by

no test coverage detected