league1991 / CodeAtlasVsix

A graph-based code navigation plugin for Visual Studio
https://marketplace.visualstudio.com/items?itemName=YaobinOuyang.CodeAtlas
GNU General Public License v2.0
247 stars 40 forks source link

Conditional direction symbols #14

Open solwhitecobalt opened 4 years ago

solwhitecobalt commented 4 years ago

Hi, I'm a Asp.net/C# developer. I believe it doesn't have conditional direction symbols yet for caller-callees relationships? I would love to have that feature here. Great extension by the way!

For instance, we have this condition in Features() method:

if(youAgree)
{
          StaticFunctions.DoIt();
}
else
{
         StaticFunctions.IgnoreAndPlayML();
}

Something similar to this would be great:

             ┌ DoIt()
Features()   ┤
             └ IgnoreAndPlayML()

Thanks!

league1991 commented 3 years ago

@solwhitecobalt Unfortunately that would be hard because it requires doxygen has a thorough analysis on the code. Currently CodeGraph relies on the results from doxygen and doxygen actually remains untouched.

My advice is to add some comments using the "Symbol" tab, or group either branch into a separate bookmark. It may not be enough but it's better than none.