Overview
Right now, most generators are doing language version checks and emitting diagnostics. This adds a lot of overhead. All of these checks should be moved out to a dedicated diagnostic analyzer, and the generator can simply not emit code if the language version is not high enough, which can easily and quickly be validated right from the syntax provider.
Overview
Right now, most generators are doing language version checks and emitting diagnostics. This adds a lot of overhead. All of these checks should be moved out to a dedicated diagnostic analyzer, and the generator can simply not emit code if the language version is not high enough, which can easily and quickly be validated right from the syntax provider.