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

Function dependencies

__tests__/pascal-reference-boundaries.test.ts:50–54  ·  view source on GitHub ↗

The calls and references a routine makes, as `kind:Target`, once each.

(qualifiedName: string)

Source from the content-addressed store, hash-verified

48
49/** The calls and references a routine makes, as `kind:Target`, once each. */
50function dependencies(qualifiedName: string): string[] {
51 return [...new Set(graph!.getOutgoingEdges(routine(qualifiedName).id)
52 .filter((e) => e.kind === 'calls' || e.kind === 'references')
53 .map((e) => `${e.kind}:${graph!.getNode(e.target)!.qualifiedName}`))].sort();
54}
55
56/** The routines that call a method, by name, once each. */
57function callerNamesOf(qualifiedName: string): string[] {

Calls 4

mapMethod · 0.80
getNodeMethod · 0.80
routineFunction · 0.70
getOutgoingEdgesMethod · 0.45

Tested by

no test coverage detected