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