mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2026-01-19 03:38:01 +00:00
improvements in ksp parts
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
package dev.inmo.micro_ksp.generator
|
||||
|
||||
import com.google.devtools.ksp.symbol.KSClassDeclaration
|
||||
|
||||
val KSClassDeclaration.companion
|
||||
get() = declarations.firstNotNullOfOrNull {
|
||||
(it as? KSClassDeclaration)?.takeIf { it.isCompanionObject }
|
||||
}
|
||||
Reference in New Issue
Block a user