8 writes to _diagnostics
Microsoft.CodeAnalysis (8)
Binding\UseSiteInfo.cs (8)
244
if (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>();
396
other.
_diagnostics
= null;
402
mergeAndClear(ref
_diagnostics
, ref other.
_diagnostics
);
5 references to _diagnostics
Microsoft.CodeAnalysis (5)
Binding\UseSiteInfo.cs (5)
179
Debug.Assert(
_diagnostics
is null);
203
return
_diagnostics
;
211
Debug.Assert(_hasErrors == (
_diagnostics
?.Any(d => d.Severity == DiagnosticSeverity.Error) ?? false));
280
Debug.Assert(
_diagnostics
is not null);
282
if (
_diagnostics
.Add(diagnosticInfo) && diagnosticInfo?.Severity == DiagnosticSeverity.Error)