While KSClassDeclaration.getAllProperties() covers our cases when we generate, I discovered an edge case when a class has only@set:Inject properties. In this case, our KSP filter actually misses these because they come through as KSPropertySetter. This fixes that by checking for both it and KSPropertyDeclaration.
While
KSClassDeclaration.getAllProperties()
covers our cases when we generate, I discovered an edge case when a class has only@set:Inject
properties. In this case, our KSP filter actually misses these because they come through asKSPropertySetter
. This fixes that by checking for both it andKSPropertyDeclaration
.