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

Function hover_at

tests/integration/php_version.rs:183–192  ·  view source on GitHub ↗

Register file content in the backend and return hover result.

(
    backend: &Backend,
    uri: &str,
    content: &str,
    line: u32,
    character: u32,
)

Source from the content-addressed store, hash-verified

181
182/// Register file content in the backend and return hover result.
183fn hover_at(
184 backend: &Backend,
185 uri: &str,
186 content: &str,
187 line: u32,
188 character: u32,
189) -> Option<tower_lsp::lsp_types::Hover> {
190 backend.update_ast(uri, content);
191 backend.handle_hover(uri, content, Position { line, character })
192}
193
194fn hover_text(hover: &tower_lsp::lsp_types::Hover) -> &str {
195 match &hover.contents {

Calls 2

update_astMethod · 0.80
handle_hoverMethod · 0.80