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

Function enter_loop

src/completion/variable/forward_walk.rs:2144–2150  ·  view source on GitHub ↗

Increment the loop depth counter and return the new depth.

()

Source from the content-addressed store, hash-verified

2142
2143/// Increment the loop depth counter and return the new depth.
2144fn enter_loop() -> u32 {
2145 LOOP_DEPTH.with(|c| {
2146 let v = c.get() + 1;
2147 c.set(v);
2148 v
2149 })
2150}
2151
2152/// Decrement the loop depth counter.
2153fn leave_loop(depth: u32) {

Callers 4

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

Calls 2

setMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected