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); }
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); }
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)); }
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)); }
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)); }