Roslyn is an open compiler. I assume that you can directly paste your own code to go through AST and upload it in XML format. Given that it is open, you can implement your own extension to read your resettable XML, and build Roslyn AST (which, I think, can be pretty). It seems like a lot of work.
For a canned solution, see C # AST in XML . A similar read-XML-to-make-AST would be required for this solution.
, XML ; , , . . AST ( ) - ?.
, , , , . DMS ( ), , #, API // AST. (XSL , : "" (, ), , ).