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,
    eager_only: bool,
) -> EngineResult<Result<ImportPathTrace, ImportPathEndpoint>>
Expand description

Trace the shortest import path through an existing analysis session. With eager_only, the walk follows static value imports only.

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

ยงErrors

Returns an error if parsing or graph construction fails.