共用方式為


SyntaxNode.Ancestors(Boolean) 方法

定義

取得上階節點的清單

public System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxNode> Ancestors (bool ascendOutOfTrivia = true);
member this.Ancestors : bool -> seq<Microsoft.CodeAnalysis.SyntaxNode>
Public Function Ancestors (Optional ascendOutOfTrivia As Boolean = true) As IEnumerable(Of SyntaxNode)

參數

ascendOutOfTrivia
Boolean

傳回

適用於