78 references to AddDiagnostic
Microsoft.CodeAnalysis.CSharp (78)
CommandLine\CSharpCommandLineParser.cs (78)
153AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsString, "<text>", name.ToString()); 208AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsString, MessageID.IDS_Text.Localize(), "/langversion:"); 214AddDiagnostic(diagnostics, ErrorCode.ERR_LanguageVersionCannotHaveLeadingZeroes, value); 222AddDiagnostic(diagnostics, ErrorCode.ERR_BadCompatMode, value); 235AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, nameMemory.ToString()); 241AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, nameMemory.ToString()); 348AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsString, "<text>", arg); 361AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsString, "<text>", name); 368AddDiagnostic(diagnostics, ErrorCode.FTL_BadCodepage, value); 379AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsString, "<text>", name); 386AddDiagnostic(diagnostics, ErrorCode.FTL_BadChecksumAlgorithm, value); 417AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsString, MessageID.IDS_Text.Localize(), name); 441AddDiagnostic(diagnostics, ErrorCode.ERR_BadNullableContextOption, value); 471AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsString, "<text>", name); 496AddDiagnostic(diagnostics, ErrorCode.ERR_MissingGuidForOption, "<text>", name); 503AddDiagnostic(diagnostics, ErrorCode.ERR_InvalidFormatForGuidForOption, value, name); 513AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsString, "<text>", arg); 532AddDiagnostic(diagnostics, ErrorCode.WRN_BadUILang, value); 546AddDiagnostic(diagnostics, ErrorCode.ERR_NoFileSpec, arg); 559AddDiagnostic(diagnostics, ErrorCode.ERR_NoFileSpec, arg); 600AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsString, "<text>", arg); 605AddDiagnostic(diagnostics, ErrorCode.ERR_InvalidAssemblyName, "<text>", arg); 618AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsString, MessageID.IDS_Text.Localize(), "modulename"); 632AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsString, "<string>", arg); 649AddDiagnostic(diagnostics, ErrorCode.ERR_NoFileSpec, arg); 666AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsString, MessageID.IDS_Text.Localize(), arg); 679AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsString, MessageID.IDS_Text.Localize(), arg); 687AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsString, MessageID.IDS_Text.Localize(), "/doc:"); // Different argument. 699AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsString, MessageID.IDS_Text.Localize(), "/addmodule:"); 703AddDiagnostic(diagnostics, ErrorCode.ERR_NoFileSpec, arg); 774AddDiagnostic(diagnostics, ErrorCode.ERR_NoFileSpec, arg); 791AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsString, MessageID.IDS_Text.Localize(), name); 807AddDiagnostic(diagnostics, ErrorCode.ERR_BadDebugType, value); 902AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, name); 923AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, name); 950AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, name); 958AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, name); 1027AddDiagnostic(diagnostics, ErrorCode.ERR_NoFileSpec, "keyfile"); 1048AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsString, MessageID.IDS_Text.Localize(), "keycontainer"); 1092AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, name); 1096AddDiagnostic(diagnostics, ErrorCode.ERR_BadBaseNumber, value); 1110AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsString, MessageID.IDS_Text.Localize(), "subsystemversion"); 1122AddDiagnostic(diagnostics, ErrorCode.ERR_InvalidSubsystemVersion, value); 1131AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsString, MessageID.IDS_Text.Localize(), "touchedfiles"); 1159AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsString, "<text>", name); 1193AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsNumber, name); 1197AddDiagnostic(diagnostics, ErrorCode.ERR_InvalidFileAlignment, value); 1201AddDiagnostic(diagnostics, ErrorCode.ERR_InvalidFileAlignment, value); 1213AddDiagnostic(diagnostics, ErrorCode.ERR_NoFileSpec, arg); 1266AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsString, ErrorLogOptionFormat, RemoveQuotesAndSlashes(arg)); 1273AddDiagnostic(diagnostics, ErrorCode.ERR_BadSwitchValue, valueMemory.Value.ToString(), "/errorlog:", ErrorLogOptionFormat); 1282AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsString, ":<text>", RemoveQuotesAndSlashes(arg)); 1294AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsString, "<text>", name); 1308AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsString, "<file list>", name); 1323AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsString, "<file list>", name); 1375AddDiagnostic(diagnostics, ErrorCode.ERR_BadSwitch, arg); 1413AddDiagnostic(diagnostics, ErrorCode.ERR_BadBaseNumber, string.Format("0x{0:X}", baseAddress)); 1604AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsString, MessageID.IDS_PathList.Localize(), switchName); 1613AddDiagnostic(diagnostics, ErrorCode.WRN_InvalidSearchPathDir, path, origin.Localize(), MessageID.IDS_DirectoryHasInvalidPath.Localize()); 1617AddDiagnostic(diagnostics, ErrorCode.WRN_InvalidSearchPathDir, path, origin.Localize(), MessageID.IDS_DirectoryDoesNotExist.Localize()); 1630AddDiagnostic(diagnostics, ErrorCode.ERR_NoFileSpec, arg); 1637AddDiagnostic(diagnostics, ErrorCode.ERR_NoFileSpec, arg); 1681AddDiagnostic(diagnostics, ErrorCode.FTL_InvalidInputFileName, outputFileName); 1692AddDiagnostic(diagnostics, ErrorCode.FTL_InvalidInputFileName, outputFileName); 1821AddDiagnostic(diagnostics, ErrorCode.ERR_BadPlatformType, value); 1858AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsString, MessageID.IDS_Namespace1.Localize(), arg); 1872AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsString, MessageID.IDS_Text.Localize(), arg); 1877AddDiagnostic(diagnostics, ErrorCode.ERR_NoFileSpec, arg); 1899AddDiagnostic(diagnostics, ErrorCode.ERR_SwitchNeedsString, MessageID.IDS_Text.Localize(), arg); 1906AddDiagnostic(diagnostics, ErrorCode.ERR_NoFileSpec, arg); 1931AddDiagnostic(diagnostics, ErrorCode.ERR_BadExternIdentifier, alias); 1973AddDiagnostic(diagnostics, ErrorCode.ERR_AliasMissingFile, alias); 2012AddDiagnostic(diagnostics, ErrorCode.ERR_InvalidInstrumentationKind, kind); 2066AddDiagnostic(diagnostics, ErrorCode.ERR_BadResourceVis, accessibility); 2072AddDiagnostic(diagnostics, ErrorCode.ERR_NoFileSpec, arg); 2079AddDiagnostic(diagnostics, ErrorCode.FTL_InvalidInputFileName, filePath); 2157AddDiagnostic(diagnostics, ErrorCode.WRN_UnimplementedCommandLineSwitch, "/" + switchName); 2185AddDiagnostic(diagnostics, errorCode, arguments);