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

Method getCallEdges

src/db/parameter-flow-queries.ts:179–184  ·  view source on GitHub ↗

* The calls edges into a node, out of one, or into any node of a name, from * `callers`, with what they reached and how sure that was. Synthesized edges * carry no reference.

(of: { target: string } | { source: string } | { targetName: string }, callers: CallerFiles)

Source from the content-addressed store, hash-verified

177 * carry no reference.
178 */
179 getCallEdges(of: { target: string } | { source: string } | { targetName: string }, callers: CallerFiles): CallSiteRow[] {
180 const rows = ('target' in of ? this.statement(CALLS_INTO).all(of.target)
181 : 'source' in of ? this.statement(CALLS_OUT_OF).all(of.source)
182 : this.statement(CALLS_OF_NAME).all(of.targetName)) as CallEdgeRow[];
183 return this.toCallSites(rows, callers);
184 }
185
186 private toCallSites(rows: CallEdgeRow[], callers: CallerFiles): CallSiteRow[] {
187 const sites: CallSiteRow[] = [];

Callers 4

callsIntoMethod · 0.80
callsNamedMethod · 0.80
sitesOnMethod · 0.80
callsPassingOnMethod · 0.80

Calls 3

statementMethod · 0.95
toCallSitesMethod · 0.95
allMethod · 0.65

Tested by

no test coverage detected