Function polar_core::formatting::source_lines[][src]

pub fn source_lines(
    source: &Source,
    offset: usize,
    context_lines: usize
) -> String
Expand description

Traverse a Source line by line until offset is reached and return the source line containing the offset character as well as context_lines lines above and below it.