mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 14:51:48 +00:00
Add display::Description
This commit is contained in:
parent
2acf1e16fc
commit
aacc894134
4 changed files with 163 additions and 67 deletions
|
@ -4,6 +4,7 @@
|
|||
mod function_signature;
|
||||
mod navigation_target;
|
||||
mod structure;
|
||||
mod description;
|
||||
|
||||
use ra_syntax::{ast::{self, AstNode, TypeParamsOwner}, SyntaxKind::{ATTR, COMMENT}};
|
||||
|
||||
|
@ -11,6 +12,8 @@ pub use navigation_target::NavigationTarget;
|
|||
pub use structure::{StructureNode, file_structure};
|
||||
pub use function_signature::FunctionSignature;
|
||||
|
||||
pub(crate) use description::Description;
|
||||
|
||||
pub(crate) fn function_label(node: &ast::FnDef) -> String {
|
||||
FunctionSignature::from(node).to_string()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue