SyntaxNode.DescendantNodesAndTokensAndSelf 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
DescendantNodesAndTokensAndSelf(Func<SyntaxNode,Boolean>, Boolean) |
获取子代节点和令牌的列表, (以前缀文档顺序包括此节点) 。 |
DescendantNodesAndTokensAndSelf(TextSpan, Func<SyntaxNode,Boolean>, Boolean) |
获取子代节点和令牌的列表, (以前缀文档顺序包括此节点) 。 |
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
获取子代节点和令牌的列表, (以前缀文档顺序包括此节点) 。
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)
参数
- descendIntoChildren
- Func<SyntaxNode,Boolean>
一个可选函数,用于确定搜索是否进入参数节点的子级。
- descendIntoTrivia
- Boolean
确定属于结构化琐事的节点是否包含在列表中。
返回
适用于
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
获取子代节点和令牌的列表, (以前缀文档顺序包括此节点) 。
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)
参数
- span
- TextSpan
节点的完整跨度必须相交。
- descendIntoChildren
- Func<SyntaxNode,Boolean>
一个可选函数,用于确定搜索是否进入参数节点的子级。
- descendIntoTrivia
- Boolean
确定属于结构化琐事的节点是否包含在列表中。