SyntaxNode.DescendantNodesAndTokensAndSelf Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
DescendantNodesAndTokensAndSelf(Func<SyntaxNode,Boolean>, Boolean) |
Gets a list of descendant nodes and tokens (including this node) in prefix document order. |
DescendantNodesAndTokensAndSelf(TextSpan, Func<SyntaxNode,Boolean>, Boolean) |
Gets a list of the descendant nodes and tokens (including this node) in prefix document order. |
DescendantNodesAndTokensAndSelf(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
- Source:
- SyntaxNode.cs
Gets a list of descendant nodes and tokens (including this node) in prefix document order.
public System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxNodeOrToken> DescendantNodesAndTokensAndSelf (Func<Microsoft.CodeAnalysis.SyntaxNode,bool> descendIntoChildren = default, bool descendIntoTrivia = false);
public System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxNodeOrToken> DescendantNodesAndTokensAndSelf (Func<Microsoft.CodeAnalysis.SyntaxNode,bool>? descendIntoChildren = default, bool descendIntoTrivia = false);
member this.DescendantNodesAndTokensAndSelf : Func<Microsoft.CodeAnalysis.SyntaxNode, bool> * bool -> seq<Microsoft.CodeAnalysis.SyntaxNodeOrToken>
Public Function DescendantNodesAndTokensAndSelf (Optional descendIntoChildren As Func(Of SyntaxNode, Boolean) = Nothing, Optional descendIntoTrivia As Boolean = false) As IEnumerable(Of SyntaxNodeOrToken)
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
DescendantNodesAndTokensAndSelf(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
- Source:
- SyntaxNode.cs
Gets a list of the descendant nodes and tokens (including this node) in prefix document order.
public System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxNodeOrToken> DescendantNodesAndTokensAndSelf (Microsoft.CodeAnalysis.Text.TextSpan span, Func<Microsoft.CodeAnalysis.SyntaxNode,bool> descendIntoChildren = default, bool descendIntoTrivia = false);
public System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxNodeOrToken> DescendantNodesAndTokensAndSelf (Microsoft.CodeAnalysis.Text.TextSpan span, Func<Microsoft.CodeAnalysis.SyntaxNode,bool>? descendIntoChildren = default, bool descendIntoTrivia = false);
member this.DescendantNodesAndTokensAndSelf : Microsoft.CodeAnalysis.Text.TextSpan * Func<Microsoft.CodeAnalysis.SyntaxNode, bool> * bool -> seq<Microsoft.CodeAnalysis.SyntaxNodeOrToken>
Public Function DescendantNodesAndTokensAndSelf (span As TextSpan, Optional descendIntoChildren As Func(Of SyntaxNode, Boolean) = Nothing, Optional descendIntoTrivia As Boolean = false) As IEnumerable(Of SyntaxNodeOrToken)
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.