Поделиться через


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

Возвращаемое значение

Атрибуты

Применяется к