Returns `true` when the hover scope cache already has a snapshot map for the given method body.
(method_span_start: u32)
| 137 | /// Returns `true` when the hover scope cache already has a snapshot map |
| 138 | /// for the given method body. |
| 139 | fn 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. |
no outgoing calls
no test coverage detected