mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
envapsulate navigation target better
This commit is contained in:
parent
1d3d05d5d7
commit
f9ed8d4d23
8 changed files with 102 additions and 96 deletions
|
@ -274,6 +274,8 @@ pub struct Function {
|
|||
pub(crate) def_id: DefId,
|
||||
}
|
||||
|
||||
pub use crate::code_model_impl::function::ScopeEntryWithSyntax;
|
||||
|
||||
/// The declared signature of a function.
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub struct FnSignature {
|
||||
|
|
|
@ -15,7 +15,7 @@ use crate::{
|
|||
impl_block::ImplBlock,
|
||||
};
|
||||
|
||||
pub use self::scope::{FnScopes, ScopesWithSyntaxMapping};
|
||||
pub use self::scope::{FnScopes, ScopesWithSyntaxMapping, ScopeEntryWithSyntax};
|
||||
|
||||
impl Function {
|
||||
pub(crate) fn new(def_id: DefId) -> Function {
|
||||
|
|
|
@ -59,5 +59,5 @@ pub use self::code_model_api::{
|
|||
Def,
|
||||
Module, ModuleSource, Problem,
|
||||
Struct, Enum, EnumVariant,
|
||||
Function, FnSignature,
|
||||
Function, FnSignature, ScopeEntryWithSyntax,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue