pub fn reset_diagnostic(mut self) -> Self {
    self.span_diagnostic = SpanDiagnostic::with_tty_emitter(
      ColorConfig::Always, true, false, Some(self.codemap.clone()));
    self
  }
// `reset_diagnostic` is necessary when testing because `SpanDiagnostic` might encapsulate some references to a shared object.
// By replacing it, we decrease the reference count.
`reset_diagnostic` is necessary when testing because `SpanDiagnostic` might encapsulate some references to a shared object.
By replacing it, we decrease the reference count.
` reset_diagnostic ` is necessary when testing because ` SpanDiagnostic ` might encapsulate some references to a shared object . By replacing it we decrease the reference count .
pub fn reset_diagnostic(mut self) -> Self {
    self.span_diagnostic = SpanDiagnostic::with_tty_emitter(
      ColorConfig::Always, true, false, Some(self.codemap.clone()));
    self
  }
pub fn reset_diagnostic ( mut self ) -> Self { self . span_diagnostic = SpanDiagnostic :: with_tty_emitter ( ColorConfig :: Always , true , false , Some ( self . codemap . clone ( ) ) ) ; self }
`reset_diagnostic` is necessary when testing because `SpanDiagnostic` might encapsulate some references to a shared object.
` reset_diagnostic ` is necessary when testing because ` SpanDiagnostic ` might encapsulate some references to a shared object .
mut self
mut self