o_utils.ksp.generator.0.22.8.source-code.ResolveSubclasses.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of micro_utils.ksp.generator Show documentation
Show all versions of micro_utils.ksp.generator Show documentation
It is set of projects with micro tools for avoiding of routines coding
package dev.inmo.micro_ksp.generator
import com.google.devtools.ksp.symbol.KSClassDeclaration
fun KSClassDeclaration.resolveSubclasses(): List {
return (getSealedSubclasses().flatMap {
it.resolveSubclasses()
}.ifEmpty {
sequenceOf(this)
}).toList()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy