pub fn with_code_graph<T>( ctx: &Context, f: impl FnOnce(&mut CodeGraph<'_>) -> Result<T>, ) -> Result<T>