1 type derived from DiagnosticWithInfo
Microsoft.CodeAnalysis.CSharp (1)
Errors\CSDiagnostic.cs (1)
14internal sealed class CSDiagnostic : DiagnosticWithInfo
4 instantiations of DiagnosticWithInfo
Microsoft.CodeAnalysis (4)
Diagnostic\Diagnostic.cs (1)
293return 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);
16 references to DiagnosticWithInfo
Microsoft.CodeAnalysis (7)
Binding\BindingDiagnosticBag.cs (1)
361if ((diagnostic as DiagnosticWithInfo)?.HasLazyInfo != true && diagnostic.Severity == DiagnosticSeverity.Error)
CommandLine\CommandLineArguments.cs (1)
449diagnosticsOpt.Add(((DiagnosticWithInfo)diagnostic).Info);
Diagnostic\DiagnosticBag.cs (1)
103if ((diagnostic as DiagnosticWithInfo)?.HasLazyInfo != true && diagnostic.DefaultSeverity == DiagnosticSeverity.Error)
Diagnostic\DiagnosticWithInfo.cs (2)
162var other = obj as DiagnosticWithInfo;
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
1406if (diagnostic is DiagnosticWithInfo)
DiagnosticAnalyzer\DiagnosticAnalysisContextHelpers.cs (1)
45if (diagnostic is DiagnosticWithInfo)
Microsoft.CodeAnalysis.CSharp (7)
Binder\Binder_Invocation.cs (2)
1903var code = d is DiagnosticWithInfo { HasLazyInfo: true, LazyInfo.Code: var lazyCode } ? lazyCode : d.Code; 1907Debug.Assert(d is not DiagnosticWithInfo { HasLazyInfo: true }, "Adjust the Arguments access to handle lazy diagnostics to avoid cycles.");
Binder\Binder_Operators.cs (1)
1061var code = diagnostic is DiagnosticWithInfo { HasLazyInfo: true, LazyInfo.Code: var lazyCode } ? lazyCode : diagnostic.Code;
FlowAnalysis\DefiniteAssignment.cs (1)
626var args = diagnostic is DiagnosticWithInfo { Info: { Arguments: var arguments } } ? arguments : diagnostic.Arguments.ToArray();
Symbols\Symbol_Attributes.cs (3)
449diagnostics.DiagnosticBag.AsEnumerableWithoutResolution().OfType<DiagnosticWithInfo>().Where(isObsoleteDiagnostic).Any()) 491if (d is DiagnosticWithInfo withInfo && isObsoleteDiagnostic(withInfo)) 531static bool isObsoleteDiagnostic(DiagnosticWithInfo d)
Microsoft.CodeAnalysis.Test.Utilities (2)
Diagnostics\DiagnosticDescription.cs (2)
133DiagnosticWithInfo dinfo = null; 141dinfo = d as DiagnosticWithInfo;