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

Function targets

__tests__/dart-const-constructors.test.ts:209–214  ·  view source on GitHub ↗
(from: Node, kind: string)

Source from the content-addressed store, hash-verified

207 return found!;
208 };
209 const targets = (from: Node, kind: string): string[] =>
210 [...new Set(graph
211 .getOutgoingEdgesFrom([from.id])
212 .filter((e) => e.kind === kind)
213 .map((e) => graph.getNode(e.target)!.qualifiedName))]
214 .sort();
215 const sources = (to: Node): string[] =>
216 [...new Set(graph
217 .getIncomingEdgesTo([to.id])

Callers 1

Calls 3

mapMethod · 0.80
getNodeMethod · 0.80
getOutgoingEdgesFromMethod · 0.45

Tested by

no test coverage detected