syntax tree
The compiler's structured representation of source code as a tree of statements and expressions; the semantic model adds what every name and type means.
In more detail
Together they describe both the shape and the meaning of a program. Roslyn exposes both, which is what analyzers and source generators inspect.
Related terms
- Roslyn — The open-source compiler for C# and Visual Basic, which turns source code into intermediate language inside an assembly.
- Roslyn analyzer — A plug-in to the C# compiler that inspects code while you edit and build, and reports diagnostics about likely bugs, unsafe patterns or style.
- source generator — A compiler plug-in that writes extra C# code during the build, based on the code you wrote.
Taught in
- Code Quality: .editorconfig and Roslyn Analyzers — Modern .NET Core, C# & Enterprise Microservices