Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing KSPropertySetter in member injection code gen #899

Merged
merged 3 commits into from
Mar 12, 2024

Conversation

ZacSweers
Copy link
Collaborator

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 as `KSPropertySetter`. This fixes that by checking for both it and `KSPropertyDeclaration`.
@ZacSweers ZacSweers requested review from JoelWilcox and RBusarow March 9, 2024 20:51
@ZacSweers ZacSweers changed the title Fix missing KSPropertySetter in member injection code gen Fix missing KSPropertySetter in member injection code gen Mar 10, 2024
@ZacSweers ZacSweers enabled auto-merge March 12, 2024 20:09
@ZacSweers ZacSweers merged commit fe6f447 into square:main Mar 12, 2024
17 checks passed
@ZacSweers ZacSweers deleted the z/fixMembersInjection branch March 12, 2024 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants