Esempio n. 1
0
            public static IEnumerable <DocumentationCommentTriviaSyntax> FindNodes(SyntaxNode rootNode)
            {
                // Find the DocXML nodes.
                var syntaxWalker = new DocXmlFinder(rootNode.FullSpan);

                syntaxWalker.Visit(rootNode);

                return(syntaxWalker._nodes);
            }
Esempio n. 2
0
            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);
            }