Implementing binding/semantic analysis support for a new C# language feature
Semantic analysis (Binding) is the intermediate phase of the C# compiler that transforms syntax trees into C# bound trees and reports semantic diagnostics. This section will enable you to add the binding support for a new C# language feature: Switch operator (?::)
. For details on the intended functionality of this operator, read the section, New language feature: Switch Operator (?::) at the start of this chapter. For details on the grammar and syntax definitions for this operator, read the first recipe of this chapter, Designing syntax and grammar for a new C# language feature.
Getting Started
You need to ensure that you have enlisted and built Roslyn sources with VS2017 tag on your machine. For further guidance, refer to the recipe, Setting up Roslyn enlistment in Chapter 8, Contribute Simple Functionality to Roslyn C# Compiler Open Source Code.
Additionally, the following two git commits on your enlistment to get...