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

Function edges

__tests__/cpp-macro-and-constructor-calls.test.ts:508–513  ·  view source on GitHub ↗

Every outgoing edge of a function, as `edgeKind kind qualifiedName (file)`.

(cg: CodeGraph, caller: string)

Source from the content-addressed store, hash-verified

506
507/** Every outgoing edge of a function, as `edgeKind kind qualifiedName (file)`. */
508function edges(cg: CodeGraph, caller: string): string[] {
509 return cg
510 .getCallees(fn(cg, caller).id)
511 .map((r) => `${r.edge.kind} ${r.node.kind} ${r.node.qualifiedName} (${r.node.filePath})`)
512 .sort();
513}
514
515describe('#2069 — an #undef under an undecidable #if leaves a never-seen flag unknown', () => {
516 it.each(['c', 'cpp'] as const)('reproduction: the #ifdef branch after it stays possible (%s)', async (language) => {

Calls 3

mapMethod · 0.80
fnFunction · 0.70
getCalleesMethod · 0.45

Tested by

no test coverage detected