Plain

data class Plain(val originalName: String, val exportedName: String, val type: KSType, val defaultExpression: String?, val sourceAnnotations: String?, val index: Int, val isBody: Boolean, val isInjected: Boolean, val isNullable: Boolean, val plan: CoercionPlan) : ParameterDescriptor

A plain parameter: exactly one entry in the source function's parameter list, exactly one entry in the wrapper's parameter list.

Parameters

originalName

Kotlin parameter name on the source function

exportedName

name to use on the generated wrapper, possibly rewritten by @Name

type

the resolved parameter type

defaultExpression

verbatim source text of the parameter's default value, or null when the parameter has no default

sourceAnnotations

verbatim source text of parameter-level annotations to propagate to the wrapper

index

position of the parameter in the flattened parameter list, matching its runtime index

isBody

whether the parameter is explicitly reserved for the body argument

isInjected

whether the parameter is supplied from the function call rather than the call site

isNullable

whether the declared type is marked nullable

plan

how the generated body fills this parameter

Constructors

Link copied to clipboard
constructor(originalName: String, exportedName: String, type: KSType, defaultExpression: String?, sourceAnnotations: String?, index: Int, isBody: Boolean, isInjected: Boolean, isNullable: Boolean, plan: CoercionPlan)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val index: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val originalName: String
Link copied to clipboard
Link copied to clipboard
open override val sourceAnnotations: String?
Link copied to clipboard
val type: KSType