using Roslyn/Microsoft.CodeAnalysis, how can I get the ISymbol
for a third-party type, ie, a type defined in a referenced assembly which is not part of the solution?
In my particular case, I'm looking for JSON.NET's JObject, but actually the same question would be valid for BCL stuff like StringBuilder etc.
The only idea I've come up so far is to implement a CSharpSyntaxWalker which looks for all method invocations, property accesses and constructor calls, checks whether they are made on the type I'm interested in and if yes, gets the symbol from the respective SyntaxNode. I'm going to implement this now, but it seems awfully cumbersome. I think there must a better way, but my google-fu has not yielded any relevant results.
Maybe about the background: what I'm trying to do is replace the usage of JObject with the usage of another class.