Example #1
0
        protected override bool CanVisitApiCore(ISymbol symbol, bool wantProtectedMember, IFilterVisitor outer)
        {
            var key = new CachedKey(symbol, wantProtectedMember);

            if (_cache.TryGetValue(key, out bool result))
            {
                return(result);
            }
            result = _cache[key] = Inner.CanVisitApi(symbol, wantProtectedMember, outer);
            return(result);
        }
Example #2
0
        public override bool CanVisitApi(ISymbol symbol, bool wantProtectedMember = true)
        {
            bool result;
            var  key = new CachedKey(symbol, wantProtectedMember);

            if (_cache.TryGetValue(key, out result))
            {
                return(result);
            }
            result = _cache[key] = Inner.CanVisitApi(symbol, wantProtectedMember);
            return(result);
        }
Example #3
0
        protected override bool CanVisitApiCore(ISymbol symbol, bool wantProtectedMember, IFilterVisitor outer)
        {
            if (symbol == null)
            {
                throw new ArgumentNullException("symbol");
            }

            if (!Inner.CanVisitApi(symbol, wantProtectedMember, outer))
            {
                return(false);
            }

            return(CanVisitCore(_configRule.ApiRules, symbol, wantProtectedMember, outer));
        }
Example #4
0
        public override bool CanVisitApi(ISymbol symbol, bool wantProtectedMember = true)
        {
            if (symbol == null)
            {
                throw new ArgumentNullException("symbol");
            }

            if (!Inner.CanVisitApi(symbol, wantProtectedMember))
            {
                return(false);
            }

            return(CanVisitCore(_configRule.ApiRules, CanVisitApi, symbol, wantProtectedMember));
        }
Example #5
0
        protected override bool CanVisitApiCore(ISymbol symbol, bool wantProtectedMember, IFilterVisitor outer)
        {
            if (symbol == null)
            {
                throw new ArgumentNullException("symbol");
            }

            if (!Inner.CanVisitApi(symbol, wantProtectedMember, outer))
            {
                return(false);
            }

            var symbolFilterData = RoslynFilterData.GetSymbolFilterData(symbol);

            return(_configRule.CanVisitApi(symbolFilterData));
        }