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

Function calleeOf

__tests__/python-quoted-annotation.test.ts:43–47  ·  view source on GitHub ↗
(fn: string)

Source from the content-addressed store, hash-verified

41});
42
43const calleeOf = (fn: string): string[] =>
44 cg
45 .getCallees(cg.getNodesByName(fn).find((n) => n.kind === 'function')!.id)
46 .map(({ node }) => node.qualifiedName)
47 .sort();
48
49describe('quoted forward-reference annotations (#1684)', () => {
50 it('resolves the method on the quoted type, the same as the unquoted annotation', () => {

Calls 3

mapMethod · 0.80
getNodesByNameMethod · 0.65
getCalleesMethod · 0.45

Tested by

no test coverage detected