commonMain.co.touchlab.skie.util.Descriptor+BelongsToSkieRuntime.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlin-compiler-linker-plugin-kgp_1.8.20 Show documentation
Show all versions of kotlin-compiler-linker-plugin-kgp_1.8.20 Show documentation
Kotlin compiler plugin that improves Swift interface of a Kotlin Multiplatform framework.
The newest version!
package co.touchlab.skie.util
import org.jetbrains.kotlin.descriptors.DeclarationDescriptor
import org.jetbrains.kotlin.descriptors.ModuleDescriptor
import org.jetbrains.kotlin.resolve.descriptorUtil.module
val ModuleDescriptor.isSkieKotlinRuntime: Boolean
get() = (stableName ?: name).asString().lowercase().let { it.contains("co.touchlab.skie") && it.contains("runtime") }
val DeclarationDescriptor.belongsToSkieKotlinRuntime: Boolean
get() = module.isSkieKotlinRuntime
© 2015 - 2025 Weber Informatics LLC | Privacy Policy