Expose len
This commit is contained in:
parent
9d4d45215a
commit
60056b8845
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user