public static IEnumerable <DocumentationCommentTriviaSyntax> FindNodes(SyntaxNode rootNode) { // Find the DocXML nodes. var syntaxWalker = new DocXmlFinder(rootNode.FullSpan); syntaxWalker.Visit(rootNode); return(syntaxWalker._nodes); }
public static IEnumerable <DocumentationCommentTriviaSyntax> FindNodes(SyntaxNode node, TextSpan span) { // Find the node that encloses the selection span. var enclosingNode = node.FindNode(span, getInnermostNodeForTie: true); // Find the DocXML nodes that overlap the selection span. var syntaxWalker = new DocXmlFinder(span); syntaxWalker.Visit(enclosingNode); return(syntaxWalker._nodes); }