23 references to DiagnosticInfo
Microsoft.CodeAnalysis (15)
CommandLine\CommandLineArguments.cs (7)
456
diagnosticsOpt.Add(new
DiagnosticInfo
(messageProviderOpt, messageProviderOpt.ERR_MetadataFileNotFound, cmdReference.Reference));
502
diagnostic = new
DiagnosticInfo
(messageProvider, messageProvider.WRN_UnableToLoadAnalyzer, analyzerReference.FullPath, e.Exception?.ToString() ?? e.Message);
505
diagnostic = new
DiagnosticInfo
(messageProvider, messageProvider.WRN_AnalyzerCannotBeCreated, e.TypeName ?? "", analyzerReference.FullPath, e.Exception?.ToString() ?? e.Message);
508
diagnostic = new
DiagnosticInfo
(messageProvider, messageProvider.WRN_NoAnalyzerInAssembly, analyzerReference.FullPath);
511
diagnostic = new
DiagnosticInfo
(messageProvider, messageProvider.WRN_AnalyzerReferencesFramework, analyzerReference.FullPath, e.TypeName!);
514
diagnostic = new
DiagnosticInfo
(messageProvider, messageProvider.WRN_AnalyzerReferencesNewerCompiler, analyzerReference.FullPath, e.ReferencedCompilerVersion!.ToString(), typeof(AnalyzerFileReference).Assembly.GetName().Version!.ToString());
553
diagnostics.Add(new
DiagnosticInfo
(messageProvider, messageProvider.ERR_MetadataFileNotFound, reference.FilePath));
CommandLine\CommonCompiler.CompilerEmitStreamProvider.cs (1)
44
var diagnosticInfo = new
DiagnosticInfo
(messageProvider, messageProvider.ERR_OutputWriteFailed, _filePath, e.Message);
CommandLine\CommonCompiler.cs (3)
511
diagnosticInfo = new
DiagnosticInfo
(messageProvider, messageProvider.ERR_FileNotFound, filePath);
515
diagnosticInfo = new
DiagnosticInfo
(messageProvider, messageProvider.ERR_BinaryFile, filePath);
519
diagnosticInfo = new
DiagnosticInfo
(messageProvider, messageProvider.ERR_NoSourceFile, filePath, e.Message);
Diagnostic\CustomObsoleteDiagnosticInfo.cs (1)
16
:
base
(messageProvider, errorCode, arguments)
Diagnostic\Diagnostic.cs (1)
288
return Create(new
DiagnosticInfo
(messageProvider, errorCode, arguments));
Diagnostic\DiagnosticInfo.cs (2)
42
:
this
(messageProvider, errorCode, Array.Empty<object>())
153
:
this
(messageProvider, errorCode, arguments)
Microsoft.CodeAnalysis.CSharp (4)
CommandLine\CSharpCompiler.cs (2)
109
diagnostics.Add(new
DiagnosticInfo
(MessageProvider, (int)ErrorCode.WRN_FileAlreadyIncluded,
143
diagnostics.Add(new
DiagnosticInfo
(MessageProvider, (int)ErrorCode.ERR_CantReadConfigFile, appConfigPath, ex.Message));
Errors\DiagnosticInfoWithSymbols.cs (1)
17
:
base
(CSharp.MessageProvider.Instance, (int)errorCode, arguments)
Errors\SyntaxDiagnosticInfo.cs (1)
17
:
base
(CSharp.MessageProvider.Instance, (int)code, args)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
9415
var diag = new CSDiagnostic(new
DiagnosticInfo
(MessageProvider.Instance, (int)ErrorCode.ERR_MetadataNameTooLong, "<name>"), loc);
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (2)
ObjectFormatterTests.cs (2)
845
obj.Add(new
DiagnosticInfo
(MessageProvider.Instance, (int)ErrorCode.ERR_AbstractAndExtern, "bar"), NoLocation.Singleton);
846
obj.Add(new
DiagnosticInfo
(MessageProvider.Instance, (int)ErrorCode.ERR_BadExternIdentifier, "goo"), NoLocation.Singleton);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
77
DiagnosticInfo di2 = new
DiagnosticInfo
(provider, 1002, "Elvis", "Mort");