Introduction
This chapter enables developers to add new functionality to the Roslyn C# compiler. Let's briefly walk through the different parts of the Roslyn source tree. You can take a quick look at the topmost source folder of the Roslyn repo in the VS2017 branch: https://github.com/dotnet/roslyn/tree/Visual-Studio-2017/src
https://github.com/dotnet/roslyn/tree/Visual-Studio-2017/src
The most important source folders and corresponding components are:
Compilers
: This implements the Roslyn C# and VB compilers and the core Microsoft Code Analysis layer, which exposes the rich-language agnostic API to perform syntactic and semantic analysis of source code. Core concepts of this layer are SyntaxTree (source file), SemanticModel (semantics of a source file), Symbol (declaration in source), and Compilation (collection of source files and options).Workspaces
: This implements the Workspaces layer and the corresponding APIs to do workspace-level code analysis and refactoring of projects and solutions...