dotnet / roslyn

The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
https://docs.microsoft.com/dotnet/csharp/roslyn-sdk/
MIT License
18.85k stars 4.01k forks source link

View Call Heirarchy shows nameof() operator as a reference and as recursive call #71351

Open vsfeedback opened 8 months ago

vsfeedback commented 8 months ago

This issue has been moved from a ticket on Developer Community.


Hi Team, On various logging statements we use nameof() operator for the method name and also it helps in refactoring the method name at scale. But whenever we see View Call Heirarchy of a method which is used in nameof() operator it shows a warning that "Further expansion is not supported for recursive calls" and the corresponding call sites are from nameof() operator. This gives a noise in debugging or code walkthroughs using call Heirarchy.


Original Comments

Feedback Bot on 12/7/2023, 00:59 AM:

(private comment, text removed)

jjonescz commented 8 months ago

Related: https://github.com/dotnet/roslyn/issues/71068

Cosifne commented 1 month ago

Ankita I see you are the last dev worked on Call Herarchy so assigned this to you. Feel free to assign to better candidates.