public static IEnumerable <IXmlElementSyntax> DescendantsAndSelf(this SyntaxNode node) { return(node.DescendantNodesAndSelf().Where(n => n.IsElement()).Cast <IXmlElementSyntax>()); }
public static IEnumerable <IXmlElementSyntax> DescendantsAndSelf(this SyntaxNode node) { return(node.DescendantNodesAndSelf().Where(n => n.IsElement()).Cast <IXmlElementSyntax>()); }