Example #1
0
            internal void AddNestedType(Cci.INestedTypeDefinition nestedType)
            {
                if (NestedTypes == null)
                {
                    Interlocked.CompareExchange(ref NestedTypes, new ConcurrentQueue <Cci.INestedTypeDefinition>(), null);
                }

                NestedTypes.Enqueue(nestedType);
            }
Example #2
0
        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);
        }