mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
Reduce visibility
This commit is contained in:
parent
19b063e055
commit
012a7e57b9
3 changed files with 29 additions and 40 deletions
|
@ -167,7 +167,7 @@ impl GlobalState {
|
|||
res
|
||||
}
|
||||
|
||||
pub fn update_configuration(&mut self, config: Config) {
|
||||
pub(crate) fn update_configuration(&mut self, config: Config) {
|
||||
self.analysis_host.update_lru_capacity(config.lru_capacity);
|
||||
if config.check != self.config.check {
|
||||
self.flycheck =
|
||||
|
@ -177,7 +177,7 @@ impl GlobalState {
|
|||
self.config = config;
|
||||
}
|
||||
|
||||
pub fn process_changes(&mut self) -> bool {
|
||||
pub(crate) fn process_changes(&mut self) -> bool {
|
||||
let change = {
|
||||
let mut change = AnalysisChange::new();
|
||||
let (vfs, line_endings_map) = &mut *self.vfs.write();
|
||||
|
@ -215,7 +215,7 @@ impl GlobalState {
|
|||
true
|
||||
}
|
||||
|
||||
pub fn snapshot(&self) -> GlobalStateSnapshot {
|
||||
pub(crate) fn snapshot(&self) -> GlobalStateSnapshot {
|
||||
GlobalStateSnapshot {
|
||||
config: self.config.clone(),
|
||||
workspaces: Arc::clone(&self.workspaces),
|
||||
|
@ -226,11 +226,11 @@ impl GlobalState {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn maybe_collect_garbage(&mut self) {
|
||||
pub(crate) fn maybe_collect_garbage(&mut self) {
|
||||
self.analysis_host.maybe_collect_garbage()
|
||||
}
|
||||
|
||||
pub fn collect_garbage(&mut self) {
|
||||
pub(crate) fn collect_garbage(&mut self) {
|
||||
self.analysis_host.collect_garbage()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue