pub fn parse_error_to_diagnostic<FileId>(
    p: &ParseError,
    fileid: FileId
) -> Diagnostic<FileId>