MCPcopy Create free account
hub / github.com/PHPantom-dev/phpantom_lsp / leave_loop

Function leave_loop

src/completion/variable/forward_walk.rs:2153–2155  ·  view source on GitHub ↗

Decrement the loop depth counter.

(depth: u32)

Source from the content-addressed store, hash-verified

2151
2152/// Decrement the loop depth counter.
2153fn leave_loop(depth: u32) {
2154 LOOP_DEPTH.with(|c| c.set(depth - 1));
2155}
2156
2157/// Clamp `max_iterations` based on the current loop nesting depth.
2158///

Callers 4

process_foreachFunction · 0.85
process_whileFunction · 0.85
process_forFunction · 0.85
process_do_whileFunction · 0.85

Calls 1

setMethod · 0.80

Tested by

no test coverage detected