Delen via


SyntaxNode.DescendantNodes Method

Definition

Overloads

DescendantNodes(Func<SyntaxNode,Boolean>, Boolean)

Gets a list of descendant nodes in prefix document order.

DescendantNodes(TextSpan, Func<SyntaxNode,Boolean>, Boolean)

Gets a list of descendant nodes in prefix document order.

DescendantNodes(Func<SyntaxNode,Boolean>, Boolean)

Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs

Gets a list of descendant nodes in prefix document order.

public System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxNode> DescendantNodes (Func<Microsoft.CodeAnalysis.SyntaxNode,bool> descendIntoChildren = default, bool descendIntoTrivia = false);
public System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxNode> DescendantNodes (Func<Microsoft.CodeAnalysis.SyntaxNode,bool>? descendIntoChildren = default, bool descendIntoTrivia = false);
member this.DescendantNodes : Func<Microsoft.CodeAnalysis.SyntaxNode, bool> * bool -> seq<Microsoft.CodeAnalysis.SyntaxNode>
Public Function DescendantNodes (Optional descendIntoChildren As Func(Of SyntaxNode, Boolean) = Nothing, Optional descendIntoTrivia As Boolean = false) As IEnumerable(Of SyntaxNode)

Parameters

descendIntoChildren
Func<SyntaxNode,Boolean>

An optional function that determines if the search descends into the argument node's children.

descendIntoTrivia
Boolean

Determines if nodes that are part of structured trivia are included in the list.

Returns

Applies to

DescendantNodes(TextSpan, Func<SyntaxNode,Boolean>, Boolean)

Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs

Gets a list of descendant nodes in prefix document order.

public System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxNode> DescendantNodes (Microsoft.CodeAnalysis.Text.TextSpan span, Func<Microsoft.CodeAnalysis.SyntaxNode,bool> descendIntoChildren = default, bool descendIntoTrivia = false);
public System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxNode> DescendantNodes (Microsoft.CodeAnalysis.Text.TextSpan span, Func<Microsoft.CodeAnalysis.SyntaxNode,bool>? descendIntoChildren = default, bool descendIntoTrivia = false);
member this.DescendantNodes : Microsoft.CodeAnalysis.Text.TextSpan * Func<Microsoft.CodeAnalysis.SyntaxNode, bool> * bool -> seq<Microsoft.CodeAnalysis.SyntaxNode>
Public Function DescendantNodes (span As TextSpan, Optional descendIntoChildren As Func(Of SyntaxNode, Boolean) = Nothing, Optional descendIntoTrivia As Boolean = false) As IEnumerable(Of SyntaxNode)

Parameters

span
TextSpan

The span the node's full span must intersect.

descendIntoChildren
Func<SyntaxNode,Boolean>

An optional function that determines if the search descends into the argument node's children.

descendIntoTrivia
Boolean

Determines if nodes that are part of structured trivia are included in the list.

Returns

Applies to