Spread

constructor(originalName: String, dataClassFqn: String, components: List<ParameterDescriptor.Plain>, sourceAnnotations: String?, dataClassKdoc: String?)

Parameters

originalName

Kotlin parameter name of the outer spread parameter on the source function

dataClassFqn

fully qualified name of the class being spread, used to emit the reconstruction call

components

one Plain per primary-constructor parameter of the spread class, in declaration order

sourceAnnotations

verbatim source text of the outer parameter's annotations (the processor filters @Spread out; anything else is retained but currently not emitted since the outer parameter itself is not part of the wrapper signature)

dataClassKdoc

raw KDoc block text of the spread class (inner content, no /** */ markers), or null when the class is undocumented; the wrapper KDoc absorbs its @param tags in place of the outer parameter's own documentation