Skip to main content

imported_item_path

Function imported_item_path 

Source
pub fn imported_item_path(
    ty_expr: &TypeExpression,
    parent_path: &ModulePath,
    imports: &Imports,
) -> Option<(ModulePath, Ident)>
Expand description

Find the normalized module path for an identifier in source, if it refers to an external declaration.

Inline imports differ from import statements only in case of package imports: the package component may refer to a local import shadowing the package name.