pub fn lines_before(offset: TextSize, code: &str) -> u32
Returns the number of newlines between offset and the first non whitespace character in the source code.
offset