Function polar_core::formatting::source_lines [−][src]
pub fn source_lines(source: &Source, offset: usize, num_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 num_lines lines
above and below it.