envapsulate navigation target better

This commit is contained in:
Aleksey Kladov 2019-01-11 14:00:54 +03:00
parent 1d3d05d5d7
commit f9ed8d4d23
8 changed files with 102 additions and 96 deletions

View file

@ -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 {

View file

@ -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 {

View file

@ -59,5 +59,5 @@ pub use self::code_model_api::{
Def,
Module, ModuleSource, Problem,
Struct, Enum, EnumVariant,
Function, FnSignature,
Function, FnSignature, ScopeEntryWithSyntax,
};