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

Function sends

__tests__/csharp-null-conditional-calls.test.ts:140–148  ·  view source on GitHub ↗

` -> ` for every call edge into a `Send`.

()

Source from the content-addressed store, hash-verified

138
139 /** `<caller> -> <callee>` for every call edge into a `Send`. */
140 function sends(): string[] {
141 const out: string[] = [];
142 for (const target of cg!.getNodesInFile('Consumer.cs').filter((n) => n.name === 'Send')) {
143 for (const e of cg!.getIncomingEdges(target.id).filter((x) => x.kind === 'calls')) {
144 out.push(`${cg!.getNode(e.source)!.name} -> ${target.qualifiedName}`);
145 }
146 }
147 return out.sort();
148 }
149
150 // (Wrapped's receiver sits alone on the line above `?.Send(…)`. It links no
151 // better than the same call written with a plain `.`: the chain keeps its

Calls 4

pushMethod · 0.80
getNodeMethod · 0.80
getNodesInFileMethod · 0.65
getIncomingEdgesMethod · 0.65

Tested by

no test coverage detected