More documentation
This commit is contained in:
12
rust_compiler/libs/helpers/src/lib.rs
Normal file
12
rust_compiler/libs/helpers/src/lib.rs
Normal file
@@ -0,0 +1,12 @@
|
||||
mod macros;
|
||||
|
||||
/// This trait will allow the LSP to emit documentation for various tokens and expressions.
|
||||
/// You can easily create documentation for large enums with the `documented!` macro.
|
||||
pub trait Documentation {
|
||||
/// Retreive documentation for this specific item.
|
||||
fn docs(&self) -> String;
|
||||
}
|
||||
|
||||
pub mod prelude {
|
||||
pub use super::{Documentation, documented};
|
||||
}
|
||||
Reference in New Issue
Block a user