CSharpExtensions.GetInterceptableLocation 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 node
cannot be intercepted syntactically, returns null.
Otherwise, returns an instance which can be used to intercept the call denoted by node
.
public static Microsoft.CodeAnalysis.CSharp.InterceptableLocation? GetInterceptableLocation (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.InvocationExpressionSyntax node, System.Threading.CancellationToken cancellationToken = default);
static member GetInterceptableLocation : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.InvocationExpressionSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.CSharp.InterceptableLocation
<Extension()>
Public Function GetInterceptableLocation (semanticModel As SemanticModel, node As InvocationExpressionSyntax, Optional cancellationToken As CancellationToken = Nothing) As InterceptableLocation
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.