Added an explicit constructor to ParserDiagnostic to fix missing symbols.