SyntaxNode.FirstAncestorOrSelf Método

Definição

Sobrecargas

FirstAncestorOrSelf<TNode,TArg>(Func<TNode,TArg,Boolean>, TArg, Boolean)

Obtém o primeiro nó do tipo TNode que corresponde ao predicado.

FirstAncestorOrSelf<TNode>(Func<TNode,Boolean>, Boolean)

Obtém o primeiro nó do tipo TNode que corresponde ao predicado.

FirstAncestorOrSelf<TNode,TArg>(Func<TNode,TArg,Boolean>, TArg, 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

Obtém o primeiro nó do tipo TNode que corresponde ao predicado.

public TNode? FirstAncestorOrSelf<TNode,TArg> (Func<TNode,TArg,bool> predicate, TArg argument, bool ascendOutOfTrivia = true) where TNode : Microsoft.CodeAnalysis.SyntaxNode;
member this.FirstAncestorOrSelf : Func<'Node, 'Arg, bool (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)> * 'Arg * bool -> 'Node (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)
Public Function FirstAncestorOrSelf(Of TNode As SyntaxNode, TArg As SyntaxNode) (predicate As Func(Of TNode, TArg, Boolean), argument As TArg, Optional ascendOutOfTrivia As Boolean = true) As TNode

Parâmetros de tipo

TNode
TArg

Parâmetros

predicate
Func<TNode,TArg,Boolean>
argument
TArg
ascendOutOfTrivia
Boolean

Retornos

TNode

Aplica-se a

FirstAncestorOrSelf<TNode>(Func<TNode,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

Obtém o primeiro nó do tipo TNode que corresponde ao predicado.

public TNode FirstAncestorOrSelf<TNode> (Func<TNode,bool> predicate = default, bool ascendOutOfTrivia = true) where TNode : Microsoft.CodeAnalysis.SyntaxNode;
public TNode? FirstAncestorOrSelf<TNode> (Func<TNode,bool>? predicate = default, bool ascendOutOfTrivia = true) where TNode : Microsoft.CodeAnalysis.SyntaxNode;
member this.FirstAncestorOrSelf : Func<'Node, bool (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)> * bool -> 'Node (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)
Public Function FirstAncestorOrSelf(Of TNode As SyntaxNode) (Optional predicate As Func(Of TNode, Boolean) = Nothing, Optional ascendOutOfTrivia As Boolean = true) As TNode

Parâmetros de tipo

TNode

Parâmetros

predicate
Func<TNode,Boolean>
ascendOutOfTrivia
Boolean

Retornos

TNode

Aplica-se a