Skip to main content

local_sites_at

Function local_sites_at 

Source
pub fn local_sites_at(
    locals: &[LocalBinding],
    text: &str,
    offset: usize,
) -> Option<Vec<Span>>
Expand description

All sites of the local under the cursor — its definition first, then every use that resolves to it (shadowing-safe). None when the cursor is not on a local.