What code optimizations can roslyn provide

I started playing with Roslyn syntax and semantic APIs. In fact, they do not dig out very well, but is there any code optimization provided by the semantic API, for example:

deleting dead code, raising or some kind of pointer analysis? or other analyzes?

I know that roslyn provides methods for DFA and CFA, but something coming as a bonus to this?

+4
source share
1 answer

Nothing is built into the API, but you can create your own functions like this using the API. I know some people who have successfully used Roslyn to identify and remove dead code, for example.

+3
source

Source: https://habr.com/ru/post/1397410/


All Articles