diff options
author | Aleksey Kladov <[email protected]> | 2019-07-12 17:41:13 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-07-12 17:41:13 +0100 |
commit | deab4caa7b1ba81c1b7e6561bc270bbde6467f13 (patch) | |
tree | af552549d828905294f4f3c109cdc339c12020ad /crates/ra_ide_api/src/change.rs | |
parent | 2e466bb365813620de15afd5e04736a92fffdca9 (diff) |
make Parse fields private
this is in preparation for the new rowan API
Diffstat (limited to 'crates/ra_ide_api/src/change.rs')
-rw-r--r-- | crates/ra_ide_api/src/change.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ide_api/src/change.rs b/crates/ra_ide_api/src/change.rs index 179f17ca4..1ba818197 100644 --- a/crates/ra_ide_api/src/change.rs +++ b/crates/ra_ide_api/src/change.rs | |||
@@ -135,8 +135,8 @@ impl LibraryData { | |||
135 | files: Vec<(FileId, RelativePathBuf, Arc<String>)>, | 135 | files: Vec<(FileId, RelativePathBuf, Arc<String>)>, |
136 | ) -> LibraryData { | 136 | ) -> LibraryData { |
137 | let symbol_index = SymbolIndex::for_files(files.par_iter().map(|(file_id, _, text)| { | 137 | let symbol_index = SymbolIndex::for_files(files.par_iter().map(|(file_id, _, text)| { |
138 | let file = SourceFile::parse(text).tree; | 138 | let parse = SourceFile::parse(text); |
139 | (*file_id, file) | 139 | (*file_id, parse) |
140 | })); | 140 | })); |
141 | let mut root_change = RootChange::default(); | 141 | let mut root_change = RootChange::default(); |
142 | root_change.added = files | 142 | root_change.added = files |