(sequence: FlowSequence, line: PseudocodeLine)
| 363 | * arbitrary arrow. |
| 364 | */ |
| 365 | export 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 | } |
no test coverage detected