19 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)
500
diagnosticInfo = new
DiagnosticInfo
(messageProvider, messageProvider.ERR_FileNotFound, filePath);
504
diagnosticInfo = new
DiagnosticInfo
(messageProvider, messageProvider.ERR_BinaryFile, filePath);
508
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)
32
:
base
(CSharp.MessageProvider.Instance, (int)code, args)