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

Function hasCall

__tests__/php-property-receiver-resolution.test.ts:62–63  ·  view source on GitHub ↗
(calls: any[], src: string, tgtQn: string)

Source from the content-addressed store, hash-verified

60 return calls;
61 };
62 const hasCall = (calls: any[], src: string, tgtQn: string) =>
63 calls.some((e) => e.src === src && e.tgtQn === tgtQn);
64 // Any resolved method call `src` makes to a method of the given bare name —
65 // used by the negative cases to assert nothing was guessed.
66 const callsMethodNamed = (calls: any[], src: string, tgt: string) =>

Calls

no outgoing calls

Tested by

no test coverage detected