Move navigation_target to display/navigation_target
This commit is contained in:
parent
946b5789d1
commit
027d4d229d
4 changed files with 6 additions and 4 deletions
crates/ra_ide_api/src
|
@ -7,6 +7,10 @@ use ra_syntax::{ast::{self, AstNode, NameOwner, VisibilityOwner, TypeParamsOwner
|
|||
use std::convert::From;
|
||||
use hir::Docs;
|
||||
|
||||
pub mod navigation_target;
|
||||
|
||||
pub use navigation_target::NavigationTarget;
|
||||
|
||||
pub(crate) fn function_label(node: &ast::FnDef) -> String {
|
||||
FunctionSignature::from(node).to_string()
|
||||
}
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
mod db;
|
||||
pub mod mock_analysis;
|
||||
mod symbol_index;
|
||||
mod navigation_target;
|
||||
mod change;
|
||||
|
||||
mod status;
|
||||
|
@ -63,7 +62,6 @@ pub use crate::{
|
|||
change::{AnalysisChange, LibraryData},
|
||||
completion::{CompletionItem, CompletionItemKind, InsertTextFormat},
|
||||
runnables::{Runnable, RunnableKind},
|
||||
navigation_target::NavigationTarget,
|
||||
references::ReferenceSearchResult,
|
||||
assists::{Assist, AssistId},
|
||||
hover::{HoverResult},
|
||||
|
@ -73,7 +71,7 @@ pub use crate::{
|
|||
syntax_highlighting::HighlightedRange,
|
||||
structure::{StructureNode, file_structure},
|
||||
diagnostics::Severity,
|
||||
display::FunctionSignature,
|
||||
display::{FunctionSignature, NavigationTarget},
|
||||
};
|
||||
|
||||
pub use ra_db::{
|
||||
|
|
|
@ -275,7 +275,7 @@ fn to_file_symbol(node: &SyntaxNode, file_id: FileId) -> Option<FileSymbol> {
|
|||
mod tests {
|
||||
use ra_syntax::SmolStr;
|
||||
use crate::{
|
||||
navigation_target::NavigationTarget,
|
||||
display::NavigationTarget,
|
||||
mock_analysis::single_file,
|
||||
Query,
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue