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

Function loopForStep

graph-ui/src/pseudocode/flow-diagram.ts:413–418  ·  view source on GitHub ↗
(diagram: FlowDiagram, step: number)

Source from the content-addressed store, hash-verified

411 * und keine Suche, die bei zwei gleichen Saetzen die falsche treffen koennte.
412 */
413export function loopForStep(diagram: FlowDiagram, step: number): number {
414 if (step < 0) {
415 return -1;
416 }
417 return diagram.loops.findIndex((loop) => loop.steps.includes(step));
418}

Callers 2

FlowOverlayFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected