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

Method drop

src/completion/variable/forward_walk.rs:208–214  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

206
207impl Drop for DiagnosticScopeGuard {
208 fn drop(&mut self) {
209 if self.owns {
210 DIAGNOSTIC_SCOPE.with(|cell| {
211 *cell.borrow_mut() = None;
212 });
213 }
214 }
215}
216
217/// RAII guard that resets [`BUILDING_SCOPES`] to `false` on drop.

Callers

nothing calls this directly

Calls 1

setMethod · 0.80

Tested by

no test coverage detected