Skip to main content

resolve_any_xref

Function resolve_any_xref 

Source
pub fn resolve_any_xref<'a>(
    data: &'a PyDomainData,
    modname: Option<&str>,
    classname: Option<&str>,
    target: &str,
) -> Vec<(String, PyXrefTarget<'a>)>
Expand description

PythonDomain.resolve_any_xref (__init__.py:996-1037): always find_obj(..., type=None, searchmode=1); when there are several matches, aliased entries are skipped; a module match yields ('py:mod', module_refnode), everything else ('py:' + role_for_objtype(objtype), refnode) — in find_obj’s match order, which is what the generic any-resolver’s first-wins rule and its ambiguity candidate list run on.