
commonMain.co.touchlab.skie.sir.element.SirEnumCaseAssociatedValue.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlin-plugin Show documentation
Show all versions of kotlin-plugin Show documentation
Kotlin compiler plugin that improves Swift interface of a Kotlin Multiplatform framework.
The newest version!
package co.touchlab.skie.sir.element
import co.touchlab.skie.sir.element.util.sirEnumCaseAssociatedValueParent
import co.touchlab.skie.sir.type.SirType
class SirEnumCaseAssociatedValue(
var type: SirType,
parent: SirEnumCase,
) : SirElement {
var parent: SirEnumCase by sirEnumCaseAssociatedValueParent(parent)
override fun toString(): String = "${this::class.simpleName} of $parent: $type"
companion object {
context(SirEnumCase)
operator fun invoke(
type: SirType,
): SirEnumCaseAssociatedValue =
SirEnumCaseAssociatedValue(
type = type,
parent = this@SirEnumCase,
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy