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

Function isCalled

__tests__/resolution.test.ts:4551–4554  ·  view source on GitHub ↗
(qn: string)

Source from the content-addressed store, hash-verified

4549 return [...new Set(names)].sort();
4550 }
4551 function isCalled(qn: string): boolean {
4552 const t = cg.getNodesByKind('method').find((n) => n.qualifiedName === qn);
4553 return !!t && cg.getIncomingEdges(t.id).some((e) => e.kind === 'calls');
4554 }
4555
4556 it('resolves a chained factory call TFoo.GetInstance().DoIt() via the return type, never a same-named decoy', async () => {
4557 fs.writeFileSync(

Callers 1

resolution.test.tsFile · 0.85

Calls 2

getNodesByKindMethod · 0.65
getIncomingEdgesMethod · 0.45

Tested by

no test coverage detected