Skip to main content

Module hover

Module hover 

Source

Functions§

class_hover_from_index
Build a hover for a class/interface/trait/enum found by short name in the workspace index.
docs_for_symbol_from_index
Return hover documentation for a symbol from a FileIndex slice.
extract_receiver_var_before_cursor
Extract the receiver variable from immediately before ->word or ?->word at the cursor’s exact column position. Uses the column rather than str::find() so multiple method calls on the same line are handled correctly.
format_params_str
hover_info_with_maps
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.
resolve_use_alias
Resolve a use-import alias to the short class name.
signature_for_symbol_from_index
Return a function/method signature string from a FileIndex slice.