Skip to main content

slice_symbol_source

Function slice_symbol_source 

Source
pub fn slice_symbol_source(
    file_path: &Path,
    symbol: &Symbol,
    start_byte: usize,
) -> Result<String, SliceError>
Expand description

Slice the symbol’s source as written, from start_byte (a decorator above the symbol, or the symbol’s own start) to the symbol’s end, starting at the beginning of that line.