Condividi tramite


SyntaxNode.FirstAncestorOrSelf Metodo

Definizione

Overload

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

Ottiene il primo nodo di tipo TNode corrispondente al predicato.

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

Ottiene il primo nodo di tipo TNode corrispondente al predicato.

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

Ottiene il primo nodo di tipo TNode corrispondente al predicato.

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

Parametri di tipo

TNode
TArg

Parametri

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

Restituisce

TNode

Si applica 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

Ottiene il primo nodo di tipo TNode corrispondente al predicato.

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

Parametri di tipo

TNode

Parametri

predicate
Func<TNode,Boolean>
ascendOutOfTrivia
Boolean

Restituisce

TNode

Si applica a