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

Function fn

__tests__/cpp-macro-and-constructor-calls.test.ts:42–46  ·  view source on GitHub ↗
(cg: CodeGraph, name: string)

Source from the content-addressed store, hash-verified

40}
41
42function fn(cg: CodeGraph, name: string): Node {
43 const node = cg.getNodesByKind('function').find((n) => n.name === name);
44 if (!node) throw new Error(`no function ${name}`);
45 return node;
46}
47
48/** `calls` callees of a function, as `kind qualifiedName (file)`. */
49function calls(cg: CodeGraph, caller: string): string[] {

Callers 5

callsFunction · 0.70
bySignatureFunction · 0.70
signaturesFunction · 0.70
edgesFunction · 0.70

Calls 1

getNodesByKindMethod · 0.65

Tested by

no test coverage detected