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

Function calls

__tests__/codeigniter.test.ts:116–120  ·  view source on GitHub ↗
(from: string, inFile: string)

Source from the content-addressed store, hash-verified

114 };
115
116 const calls = (from: string, inFile: string): string[] => {
117 const node = cg.getNodesInFile(inFile).find((n) => n.name === from && n.kind === 'method');
118 if (!node) throw new Error(`no ${from} in ${inFile}`);
119 return cg.getCallees(node.id).map((c) => `${c.node.qualifiedName} @${c.node.filePath}`).sort();
120 };
121
122 const routeTarget = (name: string): string | undefined => {
123 const route = cg.getNodesByKind('route').find((n) => n.name === name);

Callers 1

Calls 3

mapMethod · 0.80
getNodesInFileMethod · 0.65
getCalleesMethod · 0.45

Tested by

no test coverage detected