次の方法で共有


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

述語と一致する 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

述語と一致する 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

適用対象