Click or drag to resize

SyntaxNodeFirstAncestorOrSelfTNode Method



Namespace:  Microsoft.CodeAnalysis
Assembly:  Microsoft.CodeAnalysis (in Microsoft.CodeAnalysis.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public TNode FirstAncestorOrSelf<TNode>(
	Func predicate = null,
	bool ascendOutOfTrivia = true
)
where TNode : SyntaxNode

Parameters

predicate (Optional)
Type: SystemFuncT, TResult
ascendOutOfTrivia (Optional)
Type: SystemBoolean

Type Parameters

TNode

Return Value

Type: TNode
See Also