Why do you even need this? Source::Range can already extract its line from the buffer.