pub fn encode_diagnostics(
script: &str,
diagnostics: &[SourceDiagnostic],
config: &CompileConfig,
) -> SerializedDiagnosticspub fn encode_diagnostics(
script: &str,
diagnostics: &[SourceDiagnostic],
config: &CompileConfig,
) -> SerializedDiagnostics