void IApiDocTemplateProcessor.Process(NamespaceListTemplate template) { var namespaces = from c in this.model.Compounds where c.Kind == CompoundKind.Namespace orderby c.Name select c; foreach (var ns in namespaces) { this.currentNamespace = (DoxNamespace)ns; if (HasContent(this.currentNamespace, template)) { string name = generator.NormalizeName(ns.Name); generator.PrintSection("Namespace: " + name, ns.Identifier); this.generator.NextSectionLevel(); template.ProcessItems(this); this.generator.PreviousSectionLevel(); } this.currentNamespace = null; } }
private static bool HasContent(DoxNamespace ns, NamespaceListTemplate template) { // TODO return ns.Classifiers.Count > 0; }