Reputation: 1348
I would like to know if it is possible to add custom code analyzer for F# like you can for C# / VB# with Roslyn? Are there some frameworks/projects I can leverage to do it?
In addition, I would like to have an integration with Visual Studio to see errors from the analyzer in the code editor.
Upvotes: 2
Views: 50
Reputation:
AFAIK, there is no way to do this. F# currently is not supported by Roslyn, so you will need to do everything including integration with VS yourself.
You can look how the parsing of text is done with this SO question: Parse a text-string to F#-code
I would also look into existing F# projects like Fantomas to see how they parse code:
Upvotes: 3