# Functions
ErrToDiagnostic creates a new Diagnostic for the provided error.
ErrToDiagnostic creates a new Diagnostic for the provided error.
GetErrorDiagnostic Gets the first Diagnostic from the provided Diagnostics that is of severity Error.
HasErrors checks if any of the provided Diagnostics is of severity Error.