evant
09/13/2022, 12:12 AMdeclaration.getAllFunctions()
is not picking up functions though a type generated in a previous round, ie: If I have:
interface Source { fun targetFun() {} }
interface Generated : Source // this is generated in round 1
interface Target : Generated // this is processed in round 2
then
declaration.getAllFunctions()
won't include targetFun()
interestingly enough walking up to the interface manually does work
((declaration.superTypes.first().resolve().declaration as KSClassDeclaration).superTypes.first().resolve().declaration as KSClassDeclaration).getDeclaredFunctions()
Ting-Yuan Huang
09/13/2022, 12:19 AMevant
09/13/2022, 12:21 AM