]> git.lizzy.rs Git - rust.git/blob - crates/rust-analyzer/src/document.rs
Merge #9558
[rust.git] / crates / rust-analyzer / src / document.rs
1 //! In-memory document information.
2
3 /// Information about a document that the Language Client
4 /// knows about.
5 /// Its lifetime is driven by the textDocument/didOpen and textDocument/didClose
6 /// client notifications.
7 #[derive(Debug, Clone)]
8 pub(crate) struct DocumentData {
9     pub(crate) version: i32,
10 }
11
12 impl DocumentData {
13     pub(crate) fn new(version: i32) -> Self {
14         DocumentData { version }
15     }
16 }