aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_expand/src
diff options
context:
space:
mode:
authorKirill Bulatov <[email protected]>2020-08-11 13:08:55 +0100
committerKirill Bulatov <[email protected]>2020-08-11 13:09:08 +0100
commit37aa68f050fae0079db7b6ebd81bacea4441fb7e (patch)
treeff7ea3a8fdd8d15bf3603048a20e0b9e222c6451 /crates/ra_hir_expand/src
parentc8cad76d25f7fab856c9646b70122e0f9f7d7218 (diff)
Add rustdocs
Diffstat (limited to 'crates/ra_hir_expand/src')
-rw-r--r--crates/ra_hir_expand/src/diagnostics.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ra_hir_expand/src/diagnostics.rs b/crates/ra_hir_expand/src/diagnostics.rs
index e58defa68..cc7dc3af2 100644
--- a/crates/ra_hir_expand/src/diagnostics.rs
+++ b/crates/ra_hir_expand/src/diagnostics.rs
@@ -22,6 +22,7 @@ use crate::InFile;
22 22
23pub trait Diagnostic: Any + Send + Sync + fmt::Debug + 'static { 23pub trait Diagnostic: Any + Send + Sync + fmt::Debug + 'static {
24 fn message(&self) -> String; 24 fn message(&self) -> String;
25 /// A presentation source of the diagnostics, to use in highlighting and similar actions
25 fn presentation(&self) -> InFile<SyntaxNodePtr>; 26 fn presentation(&self) -> InFile<SyntaxNodePtr>;
26 fn as_any(&self) -> &(dyn Any + Send + 'static); 27 fn as_any(&self) -> &(dyn Any + Send + 'static);
27 fn is_experimental(&self) -> bool { 28 fn is_experimental(&self) -> bool {