Open davkean opened 6 years ago
I just had a look at this and I discovered the following difference between metadata view and decompiled view:
Decompiled view:
Metadata view:
Notice the use of int
(decompiler) vs. Int32
(metadata)... seems that VS cannot deal with the keyword, if it's the containing type. Note that other "primitive types" still use the keyword, even in metadata view.
Are we forced to include additional logic in the decompiler to output types in the same manner, or can we convince VS to treat the keyword and the type name the same?
Are we forced to include additional logic in the decompiler to output types in the same manner, or can we convince VS to treat the keyword and the type name the same?
I would prefer the latter (fix VS to allow Go To Definition on keywords in metadata).
So far I have found that it works up to this point:
An int
keyword properly gets identified as System.Int32
and the definition is found, but d.CanNavigateTo(...)
returns false, because
On line 120 the call to SymbolKey.Resolve
fails.
Actually, I am not sure where to go from here to find a solution to this problem. I don't know Roslyn very well yet... any help would be very much appreciated!
(Turn on decompilation)
int
bool TryParse(string s, out int result)
int
Expected: To go to the top of the class to the definition Actual: It's not clickable