Currently PowerShell uses a fair amount of generated code, for example: - [The default formatters are all autogenerated](https://github.com/PowerShell/PowerShell/tree/master/src/System.Management.Automation/FormatAndOutput/DefaultFormatters) and there's discussion about refactoring them to improve startup performance already - [Much of the core interpreter was generated in Python many years ago](https://github.com/PowerShell/PowerShell/tree/master/src/System.Management.Automation/engine/interpreter). There has been discussion in the past about updating our dependency on the LightCompiler Instead, we could keep generated code out of the checked-in files by defining it as generated at build time using [.NET Source Generators](https://devblogs.microsoft.com/dotnet/introducing-c-source-generators/).
Currently PowerShell uses a fair amount of generated code, for example:
Instead, we could keep generated code out of the checked-in files by defining it as generated at build time using .NET Source Generators.