Skip to main content

hover_with_parsed

Function hover_with_parsed 

Source
pub fn hover_with_parsed(
    source: &str,
    offset: TextSize,
    file: &ParsedFile,
    catalog: &Catalog,
    case: KeywordCase,
) -> Option<String>
Expand description

Like hover_with but takes an already-parsed file, so a caller that maintains a per-document parse cache (dsl-server’s ParseCache) can skip re-parsing the whole buffer on every hover request. hover_with itself parses fresh and delegates here.