data class OrderRequest(
val orderType: OrderType,
)
expect enum class OrderType {
ASC,
DESC,
}
When parse OrderRequest using PSI API, PsiUtil.resolveClassInClassTypeOnly(type) return null, but when I remove the keywords expect
as the following ,it do not return null.
enum class OrderType {
ASC,
DESC,
}
so when I get the PsiType
for the field, how I can judge it is enum.
when I use ((PsiClassType) psiType).resolve().isEnum()
it return false.