internal void AddNestedType(Cci.INestedTypeDefinition nestedType) { if (NestedTypes == null) { Interlocked.CompareExchange(ref NestedTypes, new ConcurrentQueue <Cci.INestedTypeDefinition>(), null); } NestedTypes.Enqueue(nestedType); }
public void AddSynthesizedDefinition(TNamedTypeSymbol container, Cci.INestedTypeDefinition nestedType) { Debug.Assert(nestedType != null); SynthesizedDefinitions defs = GetCacheOfSynthesizedDefinitions(container); if (defs.NestedTypes == null) { Interlocked.CompareExchange(ref defs.NestedTypes, new ConcurrentQueue <Cci.INestedTypeDefinition>(), null); } defs.NestedTypes.Enqueue(nestedType); }