commonMain.co.touchlab.skie.kir.irbuilder.util.CreateValueParameter.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlin-compiler-linker-plugin-kgp_1.9.0 Show documentation
Show all versions of kotlin-compiler-linker-plugin-kgp_1.9.0 Show documentation
Kotlin compiler plugin that improves Swift interface of a Kotlin Multiplatform framework.
The newest version!
package co.touchlab.skie.kir.irbuilder.util
import org.jetbrains.kotlin.descriptors.FunctionDescriptor
import org.jetbrains.kotlin.descriptors.ValueParameterDescriptor
import org.jetbrains.kotlin.descriptors.annotations.Annotations
import org.jetbrains.kotlin.descriptors.impl.ValueParameterDescriptorImpl
import org.jetbrains.kotlin.name.Name
import org.jetbrains.kotlin.types.KotlinType
fun createValueParameter(
owner: FunctionDescriptor,
name: Name,
index: Int,
type: KotlinType,
): ValueParameterDescriptor =
ValueParameterDescriptorImpl(
containingDeclaration = owner,
original = null,
index = index,
annotations = Annotations.EMPTY,
name = name,
outType = type,
declaresDefaultValue = false,
isCrossinline = false,
isNoinline = false,
varargElementType = null,
source = owner.source,
)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy