Esempio n. 1
0
        public ImmutableArray <Cci.ITypeDefinitionMember> GetSynthesizedMembers(Cci.ITypeDefinition container)
        {
            SynthesizedDefinitions defs = GetCacheOfSynthesizedDefinitions((TNamedTypeSymbol)container, addIfNotFound: false);

            if (defs == null)
            {
                return(ImmutableArray <Cci.ITypeDefinitionMember> .Empty);
            }

            return(defs.GetAllMembers());
        }
Esempio n. 2
0
        public ITypeDefinitionMember[] GetSynthesizedMembers(ITypeDefinition container)
        {
            SynthesizedDefinitions defs = GetCacheOfSynthesizedDefinitions((TNamedTypeSymbol)container, addIfNotFound: false);

            if (defs == null)
            {
                return(new ITypeDefinitionMember[0]);
            }

            return(defs.GetAllMembers());
        }