Skip to main content

trace_import_path_with_session

Function trace_import_path_with_session 

Source
pub fn trace_import_path_with_session(
    session: &AnalysisSession,
    from_path: &str,
    to_path: &str,
) -> EngineResult<Result<ImportPathTrace, ImportPathEndpoint>>
Expand description

Trace the shortest import path through an existing analysis session.

The inner Result carries the endpoint that did not resolve to a module.

ยงErrors

Returns an error if parsing or graph construction fails.