다음을 통해 공유


SyntaxNode.FirstAncestorOrSelf 메서드

정의

오버로드

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

조건자와 일치하는 TNode 형식의 첫 번째 노드를 가져옵니다.

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

조건자와 일치하는 TNode 형식의 첫 번째 노드를 가져옵니다.

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
Source:
SyntaxNode.cs

조건자와 일치하는 TNode 형식의 첫 번째 노드를 가져옵니다.

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

형식 매개 변수

TNode
TArg

매개 변수

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

반환

TNode

적용 대상

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
Source:
SyntaxNode.cs

조건자와 일치하는 TNode 형식의 첫 번째 노드를 가져옵니다.

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

형식 매개 변수

TNode

매개 변수

predicate
Func<TNode,Boolean>
ascendOutOfTrivia
Boolean

반환

TNode

적용 대상