CSharpExtensions.GetInterceptorMethod Method

Definition

If the call represented by node is referenced in an InterceptsLocationAttribute, returns the original definition symbol which is decorated with that attribute. Otherwise, returns null.

C#
public static Microsoft.CodeAnalysis.IMethodSymbol? GetInterceptorMethod(this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.InvocationExpressionSyntax node, System.Threading.CancellationToken cancellationToken = default);

Parameters

semanticModel
SemanticModel
cancellationToken
CancellationToken

Returns

Applies to

Produit Versions
Roslyn 4.12.2, 4.13.0