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

Function isCalled

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

Source from the content-addressed store, hash-verified

5824 return [...new Set(names)].sort();
5825 }
5826 function isCalled(qn: string): boolean {
5827 const t = cg.getNodesByKind('method').find((n) => n.qualifiedName === qn);
5828 return !!t && cg.getIncomingEdges(t.id).some((e) => e.kind === 'calls');
5829 }
5830
5831 it('resolves a chained factory call TFoo.GetInstance().DoIt() via the return type, never a same-named decoy', async () => {
5832 fs.writeFileSync(

Callers 1

resolution.test.tsFile · 0.85

Calls 2

getNodesByKindMethod · 0.65
getIncomingEdgesMethod · 0.65

Tested by

no test coverage detected