Make display modules private
This commit is contained in:
parent
7821c56be7
commit
bd6ddfcdde
2 changed files with 6 additions and 5 deletions
|
@ -1,5 +1,9 @@
|
|||
//! This module contains utilities for turning SyntaxNodes and HIR types
|
||||
//! into things that may be used to render in a UI.
|
||||
|
||||
mod navigation_target;
|
||||
mod structure;
|
||||
|
||||
use super::*;
|
||||
use std::fmt::{self, Display};
|
||||
use join_to_string::join;
|
||||
|
@ -7,11 +11,8 @@ use ra_syntax::{ast::{self, AstNode, NameOwner, VisibilityOwner, TypeParamsOwner
|
|||
use std::convert::From;
|
||||
use hir::Docs;
|
||||
|
||||
pub mod navigation_target;
|
||||
pub mod structure;
|
||||
|
||||
pub use navigation_target::NavigationTarget;
|
||||
pub use structure::StructureNode;
|
||||
pub use structure::{StructureNode, file_structure};
|
||||
|
||||
pub(crate) fn function_label(node: &ast::FnDef) -> String {
|
||||
FunctionSignature::from(node).to_string()
|
||||
|
|
|
@ -69,7 +69,7 @@ pub use crate::{
|
|||
folding_ranges::{Fold, FoldKind},
|
||||
syntax_highlighting::HighlightedRange,
|
||||
diagnostics::Severity,
|
||||
display::{FunctionSignature, NavigationTarget, structure::{StructureNode, file_structure}},
|
||||
display::{FunctionSignature, NavigationTarget, StructureNode, file_structure},
|
||||
};
|
||||
|
||||
pub use ra_db::{
|
||||
|
|
Loading…
Add table
Reference in a new issue