Offline dump of referenced code analysis
I'm trialing ReSharper and appreciate the added value it provides for Visual Studio in terms of code analysis. However it seems rather limiting having to interact via the GUI. I'm attempting to document an existing solution and want to be able to dump information presented by the plugin for more discrete analysis.
For example, given a defined API endpoint function, I want to navigate all the Invocations (and nested Invocations) to determine any calls to a specific data object - specifically the database interface object library reference. I see the available filters for Read, Write, Direct, and Invocation, so the analysis of code has been done but not in a format I require. If I could dump this info, including the usage relationship, I might be able to script an analysis. But the only export options I see are txt, html, and xml, and the only one of these formats that captures the usage is the icon prefix in the HTML format. I would expect this info to be part of the XML dump in a form that can be parsed, processed, and filtered - is there something I'm missing or is this a new feature request?
Please sign in to leave a comment.
Sorry for the delay in replying.
Unfortunately, you are right that the export function is not aware of the semantics of the usages and only exports the presentation in a different format. Exporting machine-readable data could be a feature request. We track such requests in YouTrack https://youtrack.jetbrains.com/issues/RSRP
But there is a specific feature for the scenario of exploring all invocation of a specific method - call tracking https://www.jetbrains.com/help/resharper/Code_Analysis__Call_Tracking.html, might be useful