Skip to main content

hover_info_with_maps

Function hover_info_with_maps 

Source
pub fn hover_info_with_maps(
    source: &str,
    doc: &ParsedDoc,
    analysis: Option<&FileAnalysis>,
    position: Position,
    other_docs: &[(Url, Arc<ParsedDoc>)],
    other_maps: &[(Url, Arc<SymbolMap>)],
    session: Option<&AnalysisSession>,
) -> Option<Hover>
Expand description

Indexed variant: uses pre-computed SymbolMaps for the cross-file declaration lookup (path 4/5), eliminating repeated AST walks on stable files. All other paths (named-arg hover, mir-member hover, static-prop hover) still use other_docs since they require full AST traversal.