pub trait SymbolResolverExtension {
// Required method
fn new_resolvers<'a>(
&self,
context_repo: &'a dyn Repo,
) -> Vec<Box<dyn PartialSymbolResolver + 'a>>;
}
Expand description
An extension of the SymbolResolver
.
Each PartialSymbolResolver will be invoked in order, its result used if one is provided. Native resolvers are always invoked first. In the future, we may provide a way for extensions to override native resolvers like tags and bookmarks.
Required Methods§
Sourcefn new_resolvers<'a>(
&self,
context_repo: &'a dyn Repo,
) -> Vec<Box<dyn PartialSymbolResolver + 'a>>
fn new_resolvers<'a>( &self, context_repo: &'a dyn Repo, ) -> Vec<Box<dyn PartialSymbolResolver + 'a>>
PartialSymbolResolvers can initialize some global data by using the
context_repo
, but the context_repo
may point to a different
operation from the repo
passed into resolve_symbol()
. For
resolution, the latter repo
should be used.