6 instantiations of DescendantNodeEnumerable
Microsoft.CodeAnalysis.Razor.Compiler (6)
Language\Syntax\SyntaxNode.cs (1)
290return new DescendantNodeEnumerable<SyntaxNode>(this, descendIntoChildren, predicate: null, selector: null);
Language\Syntax\SyntaxNode.Iterators.cs (5)
210return new(_root, _descendIntoChildren, _predicate, (Func<SyntaxNode, TNew>)(object)newSelector); 217return new(root, descendIntoChildren, predicate, n => newSelector(outerSelector(n))); 225return new(_root, _descendIntoChildren, (Func<SyntaxNode, bool>)(object)newPredicate, _selector); 239return new(root, descendIntoChildren, composedPredicate, outerSelector); 251return new(root, descendIntoChildren, composedPredicate, _ => cached);
7 references to DescendantNodeEnumerable
Microsoft.CodeAnalysis.Razor.Compiler (7)
Language\DefaultRazorIntermediateNodeLoweringPhase.cs (1)
682var descendantNodes = node.DescendantNodes(static n => n.Parent is not CSharpCodeBlockSyntax);
Language\Syntax\SyntaxNode.cs (1)
288internal DescendantNodeEnumerable<SyntaxNode> DescendantNodes(Func<SyntaxNode, bool>? descendIntoChildren = null)
Language\Syntax\SyntaxNode.Iterators.cs (5)
206public DescendantNodeEnumerable<TNew> Select<TNew>(Func<TResult, TNew> newSelector) 215static DescendantNodeEnumerable<TNew> Composed(SyntaxNode root, Func<SyntaxNode, bool>? descendIntoChildren, Func<SyntaxNode, bool>? predicate, Func<SyntaxNode, TResult> outerSelector, Func<TResult, TNew> newSelector) 221public DescendantNodeEnumerable<TResult> Where(Func<TResult, bool> newPredicate) 230static DescendantNodeEnumerable<TResult> Composed(SyntaxNode root, Func<SyntaxNode, bool>? descendIntoChildren, Func<SyntaxNode, bool>? outerPredicate, Func<SyntaxNode, TResult>? outerSelector, Func<TResult, bool> newPredicate) 256public DescendantNodeEnumerable<T> OfType<T>() where T : SyntaxNode