Is there a simple way to check if a `KClassDeclara...
# ksp
t
Is there a simple way to check if a
KClassDeclaration
has a companion object defined?
y
probably something like:
Copy code
declaration.declarations.filterIsInstance<KSClassDeclaration>().firstOrNull { it.isCompanionObject }
t
Nice this works for me! Thank you