Skip to main content

name_range

Function name_range 

Source
pub fn name_range(
    source: &str,
    line_starts: &[u32],
    name: &str,
) -> Option<Range>
Expand description

Build an LSP Range for a name that is a sub-slice of source, or None if not found.