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.

Get Roslyn Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.