aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/lib.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-02-08 11:30:21 +0000
committerAleksey Kladov <[email protected]>2019-02-08 11:34:30 +0000
commit884f04670aea239f06fe5b6ff7a9f2073034f8bc (patch)
tree7fb47d6afa2eca87d2cd330e8e39af2ce3615dd5 /crates/ra_ide_api/src/lib.rs
parent8328e196dd093f85e51420fa27d9d9bcdf65e866 (diff)
diagnostics is now a function
Diffstat (limited to 'crates/ra_ide_api/src/lib.rs')
-rw-r--r--crates/ra_ide_api/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ide_api/src/lib.rs b/crates/ra_ide_api/src/lib.rs
index 312b11a82..1f43b7623 100644
--- a/crates/ra_ide_api/src/lib.rs
+++ b/crates/ra_ide_api/src/lib.rs
@@ -52,10 +52,10 @@ use crate::{
52}; 52};
53 53
54pub use crate::{ 54pub use crate::{
55 change::{AnalysisChange, LibraryData},
55 completion::{CompletionItem, CompletionItemKind, InsertTextFormat}, 56 completion::{CompletionItem, CompletionItemKind, InsertTextFormat},
56 runnables::{Runnable, RunnableKind}, 57 runnables::{Runnable, RunnableKind},
57 navigation_target::NavigationTarget, 58 navigation_target::NavigationTarget,
58 change::{AnalysisChange, LibraryData},
59}; 59};
60pub use ra_ide_api_light::{ 60pub use ra_ide_api_light::{
61 Fold, FoldKind, HighlightedRange, Severity, StructureNode, LocalEdit, 61 Fold, FoldKind, HighlightedRange, Severity, StructureNode, LocalEdit,
@@ -373,7 +373,7 @@ impl Analysis {
373 373
374 /// Computes the set of diagnostics for the given file. 374 /// Computes the set of diagnostics for the given file.
375 pub fn diagnostics(&self, file_id: FileId) -> Cancelable<Vec<Diagnostic>> { 375 pub fn diagnostics(&self, file_id: FileId) -> Cancelable<Vec<Diagnostic>> {
376 self.with_db(|db| db.diagnostics(file_id)) 376 self.with_db(|db| diagnostics::diagnostics(db, file_id))
377 } 377 }
378 378
379 /// Computes the type of the expression at the given position. 379 /// Computes the type of the expression at the given position.