pub fn print_diagnostics_plain(cache: &FileResolver, ns: &Namespace, debug: bool) {
    let (files, file_id) = convert_files(ns, cache);

    let config = term::Config::default();

    for msg in &ns.diagnostics {
        if msg.level == Level::Debug && !debug {
            continue;
        }

        let diagnostic = convert_diagnostic(msg, &file_id);

        let mut buffer = RawBuffer::new();

        term::emit(&mut buffer, &config, &files, &diagnostic).unwrap();

        println!("{}", buffer.into_string());
    }
}
/// Print the diagnostics to stdout with plain formatting
Print the diagnostics to stdout with plain formatting
Print the diagnostics to stdout with plain formatting
pub fn print_diagnostics_plain(cache: &FileResolver, ns: &Namespace, debug: bool) {
    let (files, file_id) = convert_files(ns, cache);
    let config = term::Config::default();
    for msg in &ns.diagnostics {
        if msg.level == Level::Debug && !debug {
            continue;
        }
        let diagnostic = convert_diagnostic(msg, &file_id);
        let mut buffer = RawBuffer::new();
        term::emit(&mut buffer, &config, &files, &diagnostic).unwrap();
        println!("{}", buffer.into_string());
    }
}
pub fn print_diagnostics_plain ( cache : & FileResolver , ns : & Namespace , debug : bool ) { let ( files , file_id ) = convert_files ( ns , cache ) ; let config = term :: Config :: default ( ) ; for msg in & ns . diagnostics { if msg . level == Level :: Debug && ! debug { continue ; } let diagnostic = convert_diagnostic ( msg , & file_id ) ; let mut buffer = RawBuffer :: new ( ) ; term :: emit ( & mut buffer , & config , & files , & diagnostic ) . unwrap ( ) ; println ! ( " " buffer into_string ( ) ) ; } }
Print the diagnostics to stdout with plain formatting
Print the diagnostics to stdout with plain formatting
cache
&FileResolver
ns
&Namespace
debug
bool
cache
&FileResolver
ns
&Namespace
debug
bool