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

main.seskar.compiler.lazy.backend.Lazy.kt Maven / Gradle / Ivy

There is a newer version: 3.32.0
Show newest version
package seskar.compiler.lazy.backend

import org.jetbrains.kotlin.ir.declarations.IrProperty
import org.jetbrains.kotlin.ir.util.hasAnnotation
import org.jetbrains.kotlin.ir.util.isTopLevel
import org.jetbrains.kotlin.name.FqName

internal const val LAZY_DELIMITER = "$$"

private val LAZY = FqName("js.lazy.Lazy")

internal fun IrProperty.isLazy(): Boolean =
    hasAnnotation(LAZY) && isTopLevel




© 2015 - 2024 Weber Informatics LLC | Privacy Policy