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

Function hover_scope_has_method

src/completion/variable/forward_walk.rs:139–146  ·  view source on GitHub ↗

Returns `true` when the hover scope cache already has a snapshot map for the given method body.

(method_span_start: u32)

Source from the content-addressed store, hash-verified

137/// Returns `true` when the hover scope cache already has a snapshot map
138/// for the given method body.
139fn hover_scope_has_method(method_span_start: u32) -> bool {
140 HOVER_SCOPE_CACHE.with(|cell| {
141 let borrow = cell.borrow();
142 borrow
143 .as_ref()
144 .is_some_and(|c| c.methods.contains_key(&method_span_start))
145 })
146}
147
148/// Store a complete scope snapshot map for a method body in the hover
149/// scope cache.

Callers 1

resolve_in_method_bodyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected