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

main.seskar.compiler.workers.backend.WorkerFactory.kt Maven / Gradle / Ivy

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

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

internal const val WORKER_DELIMITER = "$$"

private val WORKER_FACTORY = FqName("web.workers.WorkerFactory")

internal fun IrProperty.isWorkerFactory(): Boolean =
    isTopLevel && getter?.returnType?.classFqName == WORKER_FACTORY




© 2015 - 2024 Weber Informatics LLC | Privacy Policy