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