Trait jj_lib::revset::SymbolResolverExtension

source ·
pub trait SymbolResolverExtension {
    // Required method
    fn new_resolvers<'a>(
        &self,
        repo: &'a dyn Repo,
    ) -> Vec<Box<dyn PartialSymbolResolver + 'a>>;
}
Expand description

An extension of the DefaultSymbolResolver.

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 branches.

Required Methods§

source

fn new_resolvers<'a>( &self, repo: &'a dyn Repo, ) -> Vec<Box<dyn PartialSymbolResolver + 'a>>

PartialSymbolResolvers can capture repo for caching purposes if desired, but they do not have to since repo is passed into resolve_symbol() as well.

Implementors§