MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / flowArrowFor

Function flowArrowFor

graph-ui/src/pseudocode/flow-model.ts:365–373  ·  view source on GitHub ↗
(sequence: FlowSequence, line: PseudocodeLine)

Source from the content-addressed store, hash-verified

363 * arbitrary arrow.
364 */
365export function flowArrowFor(sequence: FlowSequence, line: PseudocodeLine): number {
366 const highlight = flowHighlightOf(line);
367 if (highlight.participant === undefined || highlight.message === undefined) {
368 return -1;
369 }
370 return sequence.interactions.findIndex(
371 (arrow) => arrow.to === highlight.participant && arrow.message === highlight.message,
372 );
373}

Callers 2

flow-model.test.tsFile · 0.90
buildFlowViewFunction · 0.90

Calls 1

flowHighlightOfFunction · 0.85

Tested by

no test coverage detected