mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Make display modules private
This commit is contained in:
parent
7821c56be7
commit
bd6ddfcdde
@ -1,5 +1,9 @@
|
|||||||
//! This module contains utilities for turning SyntaxNodes and HIR types
|
//! This module contains utilities for turning SyntaxNodes and HIR types
|
||||||
//! into things that may be used to render in a UI.
|
//! into things that may be used to render in a UI.
|
||||||
|
|
||||||
|
mod navigation_target;
|
||||||
|
mod structure;
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
use std::fmt::{self, Display};
|
use std::fmt::{self, Display};
|
||||||
use join_to_string::join;
|
use join_to_string::join;
|
||||||
@ -7,11 +11,8 @@ use ra_syntax::{ast::{self, AstNode, NameOwner, VisibilityOwner, TypeParamsOwner
|
|||||||
use std::convert::From;
|
use std::convert::From;
|
||||||
use hir::Docs;
|
use hir::Docs;
|
||||||
|
|
||||||
pub mod navigation_target;
|
|
||||||
pub mod structure;
|
|
||||||
|
|
||||||
pub use navigation_target::NavigationTarget;
|
pub use navigation_target::NavigationTarget;
|
||||||
pub use structure::StructureNode;
|
pub use structure::{StructureNode, file_structure};
|
||||||
|
|
||||||
pub(crate) fn function_label(node: &ast::FnDef) -> String {
|
pub(crate) fn function_label(node: &ast::FnDef) -> String {
|
||||||
FunctionSignature::from(node).to_string()
|
FunctionSignature::from(node).to_string()
|
||||||
|
@ -69,7 +69,7 @@ pub use crate::{
|
|||||||
folding_ranges::{Fold, FoldKind},
|
folding_ranges::{Fold, FoldKind},
|
||||||
syntax_highlighting::HighlightedRange,
|
syntax_highlighting::HighlightedRange,
|
||||||
diagnostics::Severity,
|
diagnostics::Severity,
|
||||||
display::{FunctionSignature, NavigationTarget, structure::{StructureNode, file_structure}},
|
display::{FunctionSignature, NavigationTarget, StructureNode, file_structure},
|
||||||
};
|
};
|
||||||
|
|
||||||
pub use ra_db::{
|
pub use ra_db::{
|
||||||
|
Loading…
Reference in New Issue
Block a user