Summary
Convert traditional switch statements to switch expressions (C# 8+) where each case returns or assigns a value, particularly in Printer.cs and similar AST-processing code.
Motivation
- Switch expressions are more concise and enforce exhaustiveness
- The
Printer.cs switch on AST node types is a strong candidate — each case produces a value rather than performing complex side effects
- Aligns with modern idiomatic C# patterns already used elsewhere in the codebase
Tasks
Summary
Convert traditional
switchstatements to switch expressions (C# 8+) where each case returns or assigns a value, particularly inPrinter.csand similar AST-processing code.Motivation
Printer.csswitch on AST node types is a strong candidate — each case produces a value rather than performing complex side effectsTasks
switchstatements inPrinter.csand other AST/visitor code