mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2025-10-04 22:59:34 +00:00
14 lines
455 B
Kotlin
14 lines
455 B
Kotlin
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
|
|
}
|