MCPcopy
hub / github.com/colbymchenry/codegraph / isCalled

Function isCalled

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

Source from the content-addressed store, hash-verified

3773 return [...new Set(names)].sort();
3774 }
3775 function isCalled(qn: string): boolean {
3776 const t = cg.getNodesByKind('method').find((n) => n.qualifiedName === qn);
3777 return !!t && cg.getIncomingEdges(t.id).some((e) => e.kind === 'calls');
3778 }
3779
3780 it('resolves a chained factory call TFoo.GetInstance().DoIt() via the return type, never a same-named decoy', async () => {
3781 fs.writeFileSync(

Callers 1

resolution.test.tsFile · 0.85

Calls 2

getNodesByKindMethod · 0.65
getIncomingEdgesMethod · 0.45

Tested by

no test coverage detected