pub fn print_diagnostics(diagnostics: &Diagnostics, print_warnings: bool)