Trait lsp_document::TextAdapter [−][src]
pub trait TextAdapter {
fn pos_to_lsp_pos(&self, pos: &Pos) -> Option<Position>;
fn lsp_pos_to_pos(&self, lsp_pos: &Position) -> Option<Pos>;
fn range_to_lsp_range(&self, range: &Range<Pos>) -> Option<Range>;
fn lsp_range_to_range(&self, lsp_range: &Range) -> Option<Range<Pos>>;
fn change_to_lsp_change(
&self,
change: TextChange
) -> Option<TextDocumentContentChangeEvent>;
fn lsp_change_to_change(
&self,
lsp_change: TextDocumentContentChangeEvent
) -> Option<TextChange>;
}