https://kotlinlang.org logo
Title
a

aishwaryabhishek3

04/12/2023, 2:34 PM
Guys , Noob question here but how do I check the annotation processor code of a library who processes annotation , for example dagger. I can only see the annotations in Android studio but I want to see the code gen part as well.
j

jovmit

04/12/2023, 2:51 PM
This is a fairly old repo that I used while learning how the annotation processors work. It's very small and I hope it will help you understand what's behind the scene https://github.com/mitrejcevski/gendapter
e

Eugen Martynov

04/12/2023, 2:52 PM
Do you want to see generated code or code of the annotation processor?
a

aishwaryabhishek3

04/12/2023, 3:04 PM
@Eugen Martynov I want to see the code of the annotation processor. Sorry if that was not clear 😅
Thanks @jovmit, Will check it out
e

Eugen Martynov

04/12/2023, 3:05 PM
It is open sourced on github
or in google repository if it is from Google
a

aishwaryabhishek3

04/12/2023, 3:05 PM
But can’t I navigate to it in Android studio/ IDE , like for any other library I use
e

Eugen Martynov

04/12/2023, 3:08 PM
No, but you can not navigate also compiler plugins or compiler code itself
a

aishwaryabhishek3

04/12/2023, 3:09 PM
Cool, Thanks