Skip to main content

read_indexed_code_slice_from_source_with_selection

Function read_indexed_code_slice_from_source_with_selection 

Source
pub fn read_indexed_code_slice_from_source_with_selection(
    store: &AtlasStore,
    file: &Path,
    start_line: usize,
    end_line: Option<usize>,
    source: &str,
    content_selection: ContentSelection,
) -> ServiceResult<CodeSlice>
Expand description

Read an exact line slice from verified source after classified selection.

ยงErrors

Returns an error when the file is outside the explicit selection, is not indexed, or the requested line range is invalid.