pub fn all_diagnostics(&self) -> Vec<Diagnostic> {
        let to_position = |offset| self.source_map.to_position(offset);
        self.programs
            .iter()
            .map(|p| {
                p.diagnostics()
                    .clone()
                    .into_document_response(p.start, &to_position)
            })
            .flatten()
            .collect()
    }
/// Retrieves diagnostics across all [Program](crate::Program)s present in this document.
Retrieves diagnostics across all [Program](crate::Program)s present in this document.
Retrieves diagnostics across all [ Program ] ( crate :: Program ) s present in this document .
pub fn all_diagnostics(&self) -> Vec<Diagnostic> {
        let to_position = |offset| self.source_map.to_position(offset);
        self.programs
            .iter()
            .map(|p| {
                p.diagnostics()
                    .clone()
                    .into_document_response(p.start, &to_position)
            })
            .flatten()
            .collect()
    }
pub fn all_diagnostics ( & self ) -> Vec < Diagnostic > { let to_position = | offset | self . source_map . to_position ( offset ) ; self . programs . iter ( ) . map ( | p | { p . diagnostics ( ) . clone ( ) . into_document_response ( p . start , & to_position ) } ) . flatten ( ) . collect ( ) }
Retrieves diagnostics across all [Program](crate::Program)s present in this document.
Retrieves diagnostics across all [ Program ] ( crate :: Program ) s present in this document .
&self
&self