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