kotlinx.rpc.codegen.VersionSpecificApiImpl.kt Maven / Gradle / Ivy
/*
* Copyright 2023-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package kotlinx.rpc.codegen
import org.jetbrains.kotlin.backend.common.extensions.IrPluginContext
import org.jetbrains.kotlin.ir.symbols.IrClassSymbol
import org.jetbrains.kotlin.name.ClassId
import org.jetbrains.kotlin.name.FqName
import org.jetbrains.kotlin.platform.TargetPlatform
import org.jetbrains.kotlin.platform.isJs
object VersionSpecificApiImpl : VersionSpecificApi {
override fun isJs(platform: TargetPlatform?): Boolean {
return platform.isJs()
}
override fun referenceClass(context: IrPluginContext, packageName: String, name: String): IrClassSymbol? {
return context.referenceClass(
ClassId(
FqName(packageName),
FqName(name),
false
)
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy