static ILookup <string, XmlDocumentComment> GetComments(string dllPath, string namespaceMatch) { var dllName = Path.GetFileNameWithoutExtension(dllPath); xmlPath = Path.Combine(Directory.GetParent(dllPath).FullName, dllName + ".xml"); XmlDocumentComment[] comments = new XmlDocumentComment[0]; if (File.Exists(xmlPath)) { comments = VSDocParser.ParseXmlComment(XDocument.Parse(File.ReadAllText(xmlPath)), namespaceMatch); Constants.Logger?.LogDebug("Found {commentCount} comments for {dllName}", comments.Count(), dllName); } else { Constants.Logger?.LogWarning("No Documentation Xml found for {dllPath}", dllName); } var commentsLookup = comments.ToLookup(x => x.ClassName); return(commentsLookup); }
private bool ConstructorCommentFilter(XmlDocumentComment comment, MarkdownConstructor constructor) { return(constructor.InternalItem.IsMatchOnMethod(comment)); }
private bool MethodCommentFilter(XmlDocumentComment comment, MarkdownMethod method) { return(method.InternalItem.IsMatchOnMethod(comment)); }