I would like to know how detect if for example InvocationExpressionSyntax
is from my code or from external code.
I tried to find how to do it, but with no success.
Example.:
public async Task MyMethodAsync1()
{
await MyMethodAsync2(); // How to know that this 'InvocationExpressionSyntax' is mine using roslyn ?
}
public async Task MyMethodAsync2()
{
await Task.Delay(1); // How to know that this 'InvocationExpressionSyntax' is NOT mine using roslyn ?
}
Thanks