add "Referenced Types" under References - #3092
Conversation
|
Thank you for proposing this feature! It definitely looks interesting, some notes/comments from my side:
|
:)
Sure.
Yeah. Maybe something like the "Type" icon with a "Shortcut" overlay? (not that I know how to implement that)
I'm not 100% sure what you mean here, but I'll try to figure it out the next time I have a chance.
Do you mean completing the TODO inside |
|
@fowl2 if you don't mind, I will be taking your branch and add the missing things, clean it up, etc. and push my changes here for further discussion... |
|
@siegfriedpammer sure, any way I can be help. Have been looking into wether it would make sense to have an implementation of |
| namespace ICSharpCode.Decompiler.Metadata | ||
| { | ||
| #if !VSADDIN | ||
| public sealed class ExportedType |
There was a problem hiding this comment.
Instead of sprinkling using SRM = System.Reflection.Metadata; everywhere I would suggest using different names for the new types.
Also, I am not sure, whether we really need them. I think that the object model for the "Referenced Types" feature should be part of the UI only.
|
Note: looking at the code, it seems it does not support showing nested type references. |
|
One problem with getting nice member signatures in the tree view is that we probably want to show all members even those from assemblies that are not resolvable. So probably |
f7c8d8c to
f4d21b5
Compare
…keMember for pretty-printing of signatures in TreeView.
…ain the outer type name(s), but only namespace and nested type name.
a39fab6 to
2e77720
Compare
|
Thank you for proposing and implementing this feature. Sorry that it took so long to get this merged. |
Problem
Seeing the types/members referenced in an assembly reference is cumbersome.
Solution
Add a "Referenced Types" child node to each reference which contains the referenced types, including exported/forwarded types.
Future enhancements:
partially fixes #2690. It looked like trying to add "analysis" for anything that's not
IEntitywas going to be a bad time.