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

Function routine

__tests__/pascal-nested-routines.test.ts:39–43  ·  view source on GitHub ↗
(cg: CodeGraph, qualifiedName: string)

Source from the content-addressed store, hash-verified

37}
38
39function routine(cg: CodeGraph, qualifiedName: string) {
40 const node = cg.getNodesByKind('method').concat(cg.getNodesByKind('function')).find((n) => n.qualifiedName === qualifiedName);
41 expect(node, qualifiedName).toBeDefined();
42 return node!;
43}
44
45/** What a routine calls, as `file:Target`, sorted. */
46function callsFrom(cg: CodeGraph, qualifiedName: string): string[] {

Callers 2

callsFromFunction · 0.70

Calls 1

getNodesByKindMethod · 0.65

Tested by

no test coverage detected