o_utils.ksp.generator.0.22.6.source-code.KSClassDeclarationBuildSubFileName.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
val KSClassDeclaration.buildSubFileName: String
get() {
val parentDeclarationCaptured = parentDeclaration
val simpleNameString = simpleName.asString()
return when (parentDeclarationCaptured) {
is KSClassDeclaration -> parentDeclarationCaptured.buildSubFileName
else -> ""
} + simpleNameString
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy