ConfigurationBinder source generator should not generate source for types without members #94142
Labels
area-Extensions-Configuration
enhancement
Product code improvement that does NOT require public API changes/additions
source-generator
Indicates an issue with a source generator feature
Milestone
If a type contains no members for binding we shouldn't generator source for that. This includes the case where the only members it generates are references to itself.
Consider the following types:
All have no bindable members and result in useless code gen today. It's harmless - but we should try to identify these types of things through heuristics to reduce the size of the codegen. We should inform the behavior for non-abstract instance types from the runtime binder to determine if they'll be initialized or not in these cases -- I don't think they would.
The text was updated successfully, but these errors were encountered: