コード例 #1
0
ファイル: CachedFilterVisitor.cs プロジェクト: ws-tools/docfx
        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);
        }
コード例 #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);
        }
コード例 #3
0
ファイル: ConfigFilterVisitor.cs プロジェクト: wanyi01/docfx
        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));
        }
コード例 #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));
        }
コード例 #5
0
ファイル: ConfigFilterVisitor.cs プロジェクト: xuan2261/docfx
        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));
        }