2 writes to _lazyBag
Microsoft.CodeAnalysis (2)
Diagnostic\DiagnosticBag.cs (2)
305
return Interlocked.CompareExchange(ref
_lazyBag
, newBag, null) ?? newBag;
318
_lazyBag
= null;
9 references to _lazyBag
Microsoft.CodeAnalysis (9)
Diagnostic\DiagnosticBag.cs (9)
50
ConcurrentQueue<Diagnostic>? bag =
_lazyBag
;
172
ConcurrentQueue<Diagnostic>? oldBag =
_lazyBag
;
185
ConcurrentQueue<Diagnostic>? oldBag =
_lazyBag
;
265
return
_lazyBag
?? SpecializedCollections.EmptyEnumerable<Diagnostic>();
268
internal int Count =>
_lazyBag
?.Count ?? 0;
298
ConcurrentQueue<Diagnostic>? bag =
_lazyBag
;
315
ConcurrentQueue<Diagnostic>? bag =
_lazyBag
;
360
ConcurrentQueue<Diagnostic>? lazyBag = _bag.
_lazyBag
;
375
return "Count = " + (
_lazyBag
?.Count ?? 0);