pub fn format_error( error: &CompileError, source_map: Option<&SourceMap>, loc: Option<SourceLoc>, ) -> String
Format a compile error with source context for display to the user.