A tool for converting an sample C# program to syntax tree API calls. The tool itself can be found here.
An easy way to view the Roslyn source code can be found here.