Skip to main content

method_hover_from_index

Function method_hover_from_index 

Source
pub fn method_hover_from_index(
    class_name: &str,
    method_name: &str,
    indexes: &[(Url, Arc<FileIndex>)],
) -> Option<Hover>
Expand description

Build a hover for a static method call found by class short name + method name in the workspace index. Used when the primary mir path cannot resolve a cross-file static call (e.g. Str::camel(…) where Str is only known through a use-import).