All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.react.FunctionStateInstance.kt Maven / Gradle / Ivy

@file:Suppress("NOTHING_TO_INLINE")

package react

import kotlin.reflect.KProperty

// TODO: make external in IR
class FunctionStateInstance
private constructor() {
    inline operator fun getValue(
        thisRef: Nothing?,
        property: KProperty<*>,
    ): T =
        asDynamic()[0]

    inline operator fun setValue(
        thisRef: Nothing?,
        property: KProperty<*>,
        value: T,
    ) {
        asDynamic()[1]({ value })
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy