public override void Visit(INamespaceDefinition ns)
        {
            if ((_kinds & DocIdKinds.Namespace) != 0)
            {
                _writer.WriteLine(ns.DocId());
            }

            base.Visit(ns);
        }
        public bool Include(INamespaceDefinition ns)
        {
            // Only include non-empty namespaces
            if (!ns.GetTypes().Any(Include))
            {
                return(false);
            }

            string namespaceId = ns.DocId();

            return(_docIds.Contains(namespaceId));
        }
Пример #3
0
        public bool Include(INamespaceDefinition ns)
        {
            // Only include non-empty namespaces
            if (!ns.GetTypes().Any(Include))
            {
                return(false);
            }

            string namespaceId = ns.DocId();

            // include so long as it isn't in the exclude list.
            return(!_docIds.Contains(namespaceId));
        }
 public override void Visit(INamespaceDefinition ns)
 {
     _writer.WriteLine(ns.DocId());
     base.Visit(ns);
 }