brk
05/08/2024, 12:02 AMKSClassDeclaration (com.google.devtools.ksp.symbol.impl.binary.KSClassDeclarationDescriptorImpl) which points to the enum class Currency, but I can't find a way to get the properties of the enum entries. I'd like to have something like 'Currency enum entry EUR symbol property is "€" and prefixSymbol is true'.
enum class Currency(val symbol: String, val prefixSymbol: Boolean) {
EUR("€", true),
CZK("Kč", false),
}David Rawson
05/08/2024, 4:53 AMDavid Rawson
05/08/2024, 4:57 AMExample.kt :
val x = 2
In KSP's eyes, this has only one declaration which is a KSPropertyDeclaration for x . We can't normally get the value 2brk
05/08/2024, 11:03 AM