mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 23:25:03 +00:00
move translate_offset_with_edit to ra_editor
This commit is contained in:
parent
881c29192d
commit
8c9df62c1c
7 changed files with 268 additions and 311 deletions
|
@ -1,4 +1,4 @@
|
|||
use crate::{TextUnit, TextRange};
|
||||
use crate::TextUnit;
|
||||
use rustc_hash::FxHashMap;
|
||||
use superslice::Ext;
|
||||
|
||||
|
@ -121,7 +121,7 @@ impl LineIndex {
|
|||
col
|
||||
}
|
||||
|
||||
pub fn newlines(&self) -> &[TextUnit] {
|
||||
pub(crate) fn newlines(&self) -> &[TextUnit] {
|
||||
&self.newlines[1..]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue