pub fn replace_current_source(source: Option<&str>) -> SourceContextGuardExpand description
Replace the current source text for this thread.
This is used for UX features like “show the original expression” in legends and for diagnostics that need to slice the source by byte-span.