共用方式為


SyntaxNode.AncestorsAndSelf(Boolean) 方法

定義

取得上階節點的清單, (包括此節點)

public System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxNode> AncestorsAndSelf (bool ascendOutOfTrivia = true);
[System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.CodeAnalysis.SyntaxNode+<AncestorsAndSelf>d__85))]
public System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxNode> AncestorsAndSelf (bool ascendOutOfTrivia = true);
[System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.CodeAnalysis.SyntaxNode+<AncestorsAndSelf>d__87))]
public System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxNode> AncestorsAndSelf (bool ascendOutOfTrivia = true);
[System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.CodeAnalysis.SyntaxNode+<AncestorsAndSelf>d__86))]
public System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxNode> AncestorsAndSelf (bool ascendOutOfTrivia = true);
[System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.CodeAnalysis.SyntaxNode+<AncestorsAndSelf>d__88))]
public System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxNode> AncestorsAndSelf (bool ascendOutOfTrivia = true);
[System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.CodeAnalysis.SyntaxNode+<AncestorsAndSelf>d__89))]
public System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxNode> AncestorsAndSelf (bool ascendOutOfTrivia = true);
member this.AncestorsAndSelf : bool -> seq<Microsoft.CodeAnalysis.SyntaxNode>
[<System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.CodeAnalysis.SyntaxNode+<AncestorsAndSelf>d__85))>]
member this.AncestorsAndSelf : bool -> seq<Microsoft.CodeAnalysis.SyntaxNode>
[<System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.CodeAnalysis.SyntaxNode+<AncestorsAndSelf>d__87))>]
member this.AncestorsAndSelf : bool -> seq<Microsoft.CodeAnalysis.SyntaxNode>
[<System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.CodeAnalysis.SyntaxNode+<AncestorsAndSelf>d__86))>]
member this.AncestorsAndSelf : bool -> seq<Microsoft.CodeAnalysis.SyntaxNode>
[<System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.CodeAnalysis.SyntaxNode+<AncestorsAndSelf>d__88))>]
member this.AncestorsAndSelf : bool -> seq<Microsoft.CodeAnalysis.SyntaxNode>
[<System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.CodeAnalysis.SyntaxNode+<AncestorsAndSelf>d__89))>]
member this.AncestorsAndSelf : bool -> seq<Microsoft.CodeAnalysis.SyntaxNode>
Public Iterator Function AncestorsAndSelf (Optional ascendOutOfTrivia As Boolean = true) As IEnumerable(Of SyntaxNode)

參數

ascendOutOfTrivia
Boolean

傳回

屬性

適用於