1 write to DiagnosticInfo
Microsoft.CodeAnalysis (1)
Binding\UseSiteInfo.cs (1)
64DiagnosticInfo = diagnosticInfo;
12 references to DiagnosticInfo
Microsoft.CodeAnalysis (12)
Binding\BindingDiagnosticBag.cs (1)
284if (ReportUseSiteDiagnostic(info.DiagnosticInfo, getLocation, data))
Binding\UseSiteInfo.cs (11)
28/// Null if <see cref="DiagnosticInfo"/> is an error. 34/// Empty if <see cref="DiagnosticInfo"/> is an error. 69public bool IsEmpty => DiagnosticInfo is null && PrimaryDependency is null && SecondaryDependencies?.IsEmpty != false; 73if ((object?)DiagnosticInfo != diagnosticInfo) 81Debug.Assert(DiagnosticInfo?.Severity != DiagnosticSeverity.Error); 244if (HashSetExtensions.InitializeAndAdd(ref _diagnostics, info.DiagnosticInfo) && 245info.DiagnosticInfo?.Severity == DiagnosticSeverity.Error) 480Initialize(useSiteInfo.DiagnosticInfo, GetDependenciesToCache(primaryDependency, useSiteInfo)); 487Debug.Assert(primaryDependency == useSiteInfo.PrimaryDependency || useSiteInfo.DiagnosticInfo?.Severity == DiagnosticSeverity.Error); 537object? info = Compact(value.DiagnosticInfo, GetDependenciesToCache(primaryDependency, value)); 548object? info = Compact(value.DiagnosticInfo, GetDependenciesToCache(primaryDependency, value));