]> git.lizzy.rs Git - rust.git/blob - crates/rust-analyzer/src/document.rs
Remove more unreachable pubs
[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: Option<i64>,
10 }
11
12 impl DocumentData {
13     pub(crate) fn new(version: i64) -> Self {
14         DocumentData { version: Some(version) }
15     }
16 }