8 writes to _diagnostics
Microsoft.CodeAnalysis (8)
Binding\UseSiteInfo.cs (8)
244if (HashSetExtensions.InitializeAndAdd(ref _diagnostics, info.DiagnosticInfo) && 269_diagnostics ??= new HashSet<DiagnosticInfo>(); 297_diagnostics ??= new HashSet<DiagnosticInfo>(); 315_diagnostics ??= new HashSet<DiagnosticInfo>(); 331_diagnostics ??= new HashSet<DiagnosticInfo>(); 396other._diagnostics = null; 402mergeAndClear(ref _diagnostics, ref other._diagnostics);
5 references to _diagnostics
Microsoft.CodeAnalysis (5)
Binding\UseSiteInfo.cs (5)
179Debug.Assert(_diagnostics is null); 203return _diagnostics; 211Debug.Assert(_hasErrors == (_diagnostics?.Any(d => d.Severity == DiagnosticSeverity.Error) ?? false)); 280Debug.Assert(_diagnostics is not null); 282if (_diagnostics.Add(diagnosticInfo) && diagnosticInfo?.Severity == DiagnosticSeverity.Error)