Skip to main content

lines_before

Function lines_before 

Source
pub fn lines_before(offset: TextSize, code: &str) -> u32
Expand description

Returns the number of newlines between offset and the first non whitespace character in the source code.