Skip to main content

symbol_at_cursor_with_source

Function symbol_at_cursor_with_source 

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

Extract a symbol key at a cursor offset with access to source text.

This variant is used by LSP handlers when additional source-aware disambiguation is needed (for example, barewords in use ... qw(...) lists).