30 references to DiagnosticInfo
Microsoft.CodeAnalysis (15)
CommandLine\CommandLineArguments.cs (7)
440
diagnosticsOpt.Add(new
DiagnosticInfo
(messageProviderOpt, messageProviderOpt.ERR_MetadataFileNotFound, cmdReference.Reference));
485
diagnostic = new
DiagnosticInfo
(messageProvider, messageProvider.WRN_UnableToLoadAnalyzer, analyzerReference.FullPath, e.Message);
488
diagnostic = new
DiagnosticInfo
(messageProvider, messageProvider.WRN_AnalyzerCannotBeCreated, e.TypeName ?? "", analyzerReference.FullPath, e.Message);
491
diagnostic = new
DiagnosticInfo
(messageProvider, messageProvider.WRN_NoAnalyzerInAssembly, analyzerReference.FullPath);
494
diagnostic = new
DiagnosticInfo
(messageProvider, messageProvider.WRN_AnalyzerReferencesFramework, analyzerReference.FullPath, e.TypeName!);
497
diagnostic = new
DiagnosticInfo
(messageProvider, messageProvider.WRN_AnalyzerReferencesNewerCompiler, analyzerReference.FullPath, e.ReferencedCompilerVersion!.ToString(), typeof(AnalyzerFileReference).Assembly.GetName().Version!.ToString());
536
diagnostics.Add(new
DiagnosticInfo
(messageProvider, messageProvider.ERR_MetadataFileNotFound, reference.FilePath));
CommandLine\CommonCompiler.CompilerEmitStreamProvider.cs (1)
43
var diagnosticInfo = new
DiagnosticInfo
(messageProvider, messageProvider.ERR_OutputWriteFailed, _filePath, e.Message);
CommandLine\CommonCompiler.cs (3)
508
diagnosticInfo = new
DiagnosticInfo
(messageProvider, messageProvider.ERR_FileNotFound, filePath);
512
diagnosticInfo = new
DiagnosticInfo
(messageProvider, messageProvider.ERR_BinaryFile, filePath);
516
diagnosticInfo = new
DiagnosticInfo
(messageProvider, messageProvider.ERR_NoSourceFile, filePath, e.Message);
Diagnostic\CustomObsoleteDiagnosticInfo.cs (1)
19
:
base
(messageProvider, errorCode, arguments)
Diagnostic\Diagnostic.cs (1)
287
return Create(new
DiagnosticInfo
(messageProvider, errorCode, arguments));
Diagnostic\DiagnosticInfo.cs (2)
46
:
this
(messageProvider, errorCode, Array.Empty<object>())
157
:
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)
22
:
base
(CSharp.MessageProvider.Instance, (int)code, args)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
9195
var diag = new CSDiagnostic(new
DiagnosticInfo
(MessageProvider.Instance, (int)ErrorCode.ERR_MetadataNameTooLong, "<name>"), loc);
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (2)
ObjectFormatterTests.cs (2)
841
obj.Add(new
DiagnosticInfo
(MessageProvider.Instance, (int)ErrorCode.ERR_AbstractAndExtern, "bar"), NoLocation.Singleton);
842
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");
Microsoft.CodeAnalysis.VisualBasic (7)
Errors\CustomDiagnostics.vb (2)
38
MyBase.
New
(VisualBasic.MessageProvider.Instance, errid, additionalArgs)
77
MyBase.
New
(VisualBasic.MessageProvider.Instance, errid, args)
Errors\ErrorFactories.vb (2)
63
Return New
DiagnosticInfo
(MessageProvider.Instance, id, arguments)
141
MyBase.
New
(VisualBasic.MessageProvider.Instance, 0, arguments)
Symbols\AssemblySymbol.vb (2)
301
Dim diagInfo As DiagnosticInfo = New
DiagnosticInfo
(MessageProvider.Instance, ERRID.ERR_TypeFwdCycle2, emittedName.FullName, Me)
306
Dim diagnosticInfo = New
DiagnosticInfo
(MessageProvider.Instance, ERRID.ERR_TypeForwardedToMultipleAssemblies, forwardingModule, Me, emittedName.FullName, destination1, destination2)
Symbols\Metadata\PE\PEFieldSymbol.vb (1)
424
fieldUseSiteInfo = New UseSiteInfo(Of AssemblySymbol)(New
DiagnosticInfo
(MessageProvider.Instance,