mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
decorations
This commit is contained in:
parent
836e0c1863
commit
9863b9161d
6 changed files with 143 additions and 27 deletions
|
@ -24,6 +24,7 @@ pub struct WorldState {
|
|||
data: Arc<WorldData>
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct World {
|
||||
data: Arc<WorldData>,
|
||||
}
|
||||
|
@ -119,12 +120,13 @@ impl World {
|
|||
}
|
||||
|
||||
|
||||
#[derive(Default)]
|
||||
#[derive(Default, Debug)]
|
||||
struct WorldData {
|
||||
mem_map: HashMap<PathBuf, Arc<String>>,
|
||||
file_map: RwLock<HashMap<PathBuf, Arc<FileData>>>,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
struct FileData {
|
||||
text: Option<String>,
|
||||
syntax: OnceCell<ast::File>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue