1 write to _lazyUsedAssemblyReferences
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Compilation_UsedAssemblies.cs (1)
245
Interlocked.CompareExchange(ref
_lazyUsedAssemblyReferences
, new ConcurrentSet<AssemblySymbol>(), null);
9 references to _lazyUsedAssemblyReferences
Microsoft.CodeAnalysis.CSharp (9)
Compilation\CSharpCompilation.cs (2)
2688
if (
_lazyUsedAssemblyReferences
?.IsEmpty == false || diagnostics.DependenciesBag.Count != 0)
2692
if (
_lazyUsedAssemblyReferences
?.Contains(assembly) == true ||
Symbols\Compilation_UsedAssemblies.cs (7)
91
return
_lazyUsedAssemblyReferences
;
145
if (
_lazyUsedAssemblyReferences
is object)
147
lock (
_lazyUsedAssemblyReferences
)
154
var stack = ArrayBuilder<AssemblySymbol>.GetInstance(
_lazyUsedAssemblyReferences
.Count);
155
stack.AddRange(
_lazyUsedAssemblyReferences
);
243
if (
_lazyUsedAssemblyReferences
is null)
251
bool added =
_lazyUsedAssemblyReferences
.Add(assembly);