2 types derived from DiagnosticWithInfo
Microsoft.CodeAnalysis.CSharp (1)
Errors\CSDiagnostic.cs (1)
14internal sealed class CSDiagnostic : DiagnosticWithInfo
Microsoft.CodeAnalysis.VisualBasic (1)
Errors\VBDiagnostic.vb (1)
11Inherits DiagnosticWithInfo
14 instantiations of DiagnosticWithInfo
Microsoft.CodeAnalysis (4)
Diagnostic\Diagnostic.cs (1)
292return new DiagnosticWithInfo(info, Location.None);
Diagnostic\DiagnosticWithInfo.cs (3)
204return new DiagnosticWithInfo(_info, location, _isSuppressed); 214return new DiagnosticWithInfo(this.Info.GetInstanceWithSeverity(severity), _location, _isSuppressed); 224return new DiagnosticWithInfo(this.Info, _location, isSuppressed);
Microsoft.CodeAnalysis.VisualBasic (10)
CommandLine\VisualBasicCommandLineParser.vb (9)
1867New DiagnosticWithInfo( 1891New DiagnosticWithInfo( 1920New DiagnosticWithInfo( 1937New DiagnosticWithInfo( 1993diagnosticBuilder.Add(New DiagnosticWithInfo(ErrorFactory.ErrorInfo(ERRID.ERR_ConditionalCompilationConstantNotValid, diag, parsedTokensAsString.ToString), Location.None)) 2001New DiagnosticWithInfo( 2022New DiagnosticWithInfo( 2044New DiagnosticWithInfo( 2054New DiagnosticWithInfo(
Errors\VBDiagnostic.vb (1)
14MyBase.New(info, location, isSuppressed)
17 references to DiagnosticWithInfo
Microsoft.CodeAnalysis (6)
CommandLine\CommandLineArguments.cs (1)
433diagnosticsOpt.Add(((DiagnosticWithInfo)diagnostic).Info);
Diagnostic\DiagnosticBag.cs (1)
102if ((diagnostic as DiagnosticWithInfo)?.HasLazyInfo != true && diagnostic.DefaultSeverity == DiagnosticSeverity.Error)
Diagnostic\DiagnosticWithInfo.cs (2)
162var other = obj as DiagnosticWithInfo;
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
1320if (diagnostic is DiagnosticWithInfo)
DiagnosticAnalyzer\DiagnosticAnalysisContextHelpers.cs (1)
45if (diagnostic is DiagnosticWithInfo)
Microsoft.CodeAnalysis.CSharp (4)
FlowAnalysis\DefiniteAssignment.cs (1)
596var args = diagnostic is DiagnosticWithInfo { Info: { Arguments: var arguments } } ? arguments : diagnostic.Arguments.ToArray();
Symbols\Symbol_Attributes.cs (3)
434diagnostics.DiagnosticBag.AsEnumerableWithoutResolution().OfType<DiagnosticWithInfo>().Where(isObsoleteDiagnostic).Any()) 476if (d is DiagnosticWithInfo withInfo && isObsoleteDiagnostic(withInfo)) 516static bool isObsoleteDiagnostic(DiagnosticWithInfo d)
Microsoft.CodeAnalysis.Test.Utilities (2)
Diagnostics\DiagnosticDescription.cs (2)
132DiagnosticWithInfo dinfo = null; 140dinfo = d as DiagnosticWithInfo;
Microsoft.CodeAnalysis.VisualBasic (5)
Binding\Binder_Expressions.vb (1)
1086Dim cdiag = TryCast(diag, DiagnosticWithInfo)
Binding\Binder_Invocation.vb (2)
1899symbol, symbol.ContainingType, DirectCast(iDiagnostic, DiagnosticWithInfo).Info)) 1904diagnosticInfos.Add(ErrorFactory.ErrorInfo(ERRID.ERR_OverloadCandidate2, symbol, DirectCast(iDiagnostic, DiagnosticWithInfo).Info))
GlobalImport.vb (1)
128Return New VBDiagnostic(New ImportDiagnosticInfo(DirectCast(unmappedDiag, DiagnosticWithInfo).Info, _importedName, startindex, length), NoLocation.Singleton)
Symbols\Source\SourceModuleSymbol.vb (1)
820Dim cdiag = TryCast(diag, DiagnosticWithInfo)