Skip to main content

SyntaxExtensions.IsInExpressionTree(SyntaxNode, SemanticModel, CancellationToken) Method

Containing Type: SyntaxExtensions

Assembly: Roslynator.CSharp.dll

Determines if the specified node is contained in an expression tree.

public static bool IsInExpressionTree(this Microsoft.CodeAnalysis.SyntaxNode node, Microsoft.CodeAnalysis.SemanticModel semanticModel, System.Threading.CancellationToken cancellationToken = default)

Parameters

node SyntaxNode

semanticModel SemanticModel

cancellationToken CancellationToken

Returns

Boolean