Join Slack
Powered by
could someone help point me in the right direction...
# getting-started
w
William Reed
09/07/2021, 4:00 PM
could someone help point me in the right direction to obtain the primary constructor arguments (to get their names and types) in an annotation processor? i am currently reading about kotlin metadata to see if that can be helpful
s
Stephan Schroeder
09/08/2021, 8:03 AM
there are two annotation processors in use: kapt and ksp. kapt (I think) because that uses the java view of your kotlin code and ksp, which is kotlin specific (and will give you access to all kotlin language features):
https://github.com/google/ksp
https://github.com/google/ksp/blob/main/docs/quickstart.md
Open in Slack
Previous
Next