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
|
@ -7,6 +7,10 @@ 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 use navigation_target::NavigationTarget;
|
||||||
|
|
||||||
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()
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,6 @@
|
||||||
mod db;
|
mod db;
|
||||||
pub mod mock_analysis;
|
pub mod mock_analysis;
|
||||||
mod symbol_index;
|
mod symbol_index;
|
||||||
mod navigation_target;
|
|
||||||
mod change;
|
mod change;
|
||||||
|
|
||||||
mod status;
|
mod status;
|
||||||
|
@ -63,7 +62,6 @@ pub use crate::{
|
||||||
change::{AnalysisChange, LibraryData},
|
change::{AnalysisChange, LibraryData},
|
||||||
completion::{CompletionItem, CompletionItemKind, InsertTextFormat},
|
completion::{CompletionItem, CompletionItemKind, InsertTextFormat},
|
||||||
runnables::{Runnable, RunnableKind},
|
runnables::{Runnable, RunnableKind},
|
||||||
navigation_target::NavigationTarget,
|
|
||||||
references::ReferenceSearchResult,
|
references::ReferenceSearchResult,
|
||||||
assists::{Assist, AssistId},
|
assists::{Assist, AssistId},
|
||||||
hover::{HoverResult},
|
hover::{HoverResult},
|
||||||
|
@ -73,7 +71,7 @@ pub use crate::{
|
||||||
syntax_highlighting::HighlightedRange,
|
syntax_highlighting::HighlightedRange,
|
||||||
structure::{StructureNode, file_structure},
|
structure::{StructureNode, file_structure},
|
||||||
diagnostics::Severity,
|
diagnostics::Severity,
|
||||||
display::FunctionSignature,
|
display::{FunctionSignature, NavigationTarget},
|
||||||
};
|
};
|
||||||
|
|
||||||
pub use ra_db::{
|
pub use ra_db::{
|
||||||
|
|
|
@ -275,7 +275,7 @@ fn to_file_symbol(node: &SyntaxNode, file_id: FileId) -> Option<FileSymbol> {
|
||||||
mod tests {
|
mod tests {
|
||||||
use ra_syntax::SmolStr;
|
use ra_syntax::SmolStr;
|
||||||
use crate::{
|
use crate::{
|
||||||
navigation_target::NavigationTarget,
|
display::NavigationTarget,
|
||||||
mock_analysis::single_file,
|
mock_analysis::single_file,
|
||||||
Query,
|
Query,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue