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

Function mark_resolving

src/virtual_members/mod.rs:561–563  ·  view source on GitHub ↗

Mark a class as being resolved. Returns `true` if it was freshly inserted (caller should proceed), `false` if it was already present (caller should bail to avoid infinite recursion).

(fqn: &str)

Source from the content-addressed store, hash-verified

559/// inserted (caller should proceed), `false` if it was already present
560/// (caller should bail to avoid infinite recursion).
561fn mark_resolving(fqn: &str) -> bool {
562 RESOLVING.with(|set| set.borrow_mut().insert(fqn.to_string()))
563}
564
565/// Remove a class from the resolving set when resolution is complete.
566fn unmark_resolving(fqn: &str) {

Callers 1

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected