Expose len

This commit is contained in:
Ariel Davis 2023-05-06 15:44:37 -07:00
parent 9d4d45215a
commit 60056b8845

View file

@ -229,4 +229,9 @@ impl LineIndex {
.map(|(lo, hi)| TextRange::new(lo, hi))
.filter(|it| !it.is_empty())
}
/// Returns the length of the original text.
pub fn len(&self) -> TextSize {
self.len
}
}