pub fn set_phase(phase: AnalysisPhase) -> ContextGuard
Set the current analysis phase.
Returns a guard that restores the previous phase on drop.
let _phase = set_phase(AnalysisPhase::Parsing); // Do parsing work... // Phase automatically restored when _phase drops