Skip to main content

symbol_at_cursor

Function symbol_at_cursor 

Source
pub fn symbol_at_cursor(
    ast: &Node,
    offset: usize,
    current_pkg: &str,
) -> Option<SymbolKey>
Expand description

Extract a symbol key at a cursor offset.

This keeps the historical API and defers to symbol_at_cursor_with_source without source text-specific disambiguation.