CSharpExtensions.GetInterceptorMethod Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public static Microsoft.CodeAnalysis.IMethodSymbol? GetInterceptorMethod (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.InvocationExpressionSyntax node, System.Threading.CancellationToken cancellationToken = default);
static member GetInterceptorMethod : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.InvocationExpressionSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.IMethodSymbol
<Extension()>
Public Function GetInterceptorMethod (semanticModel As SemanticModel, node As InvocationExpressionSyntax, Optional cancellationToken As CancellationToken = Nothing) As IMethodSymbol
Parameters
- semanticModel
- SemanticModel
- cancellationToken
- CancellationToken
Returns
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.