commonMain.co.touchlab.skie.util.Descriptor+BelongsToSkieRuntime.kt Maven / Gradle / Ivy
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