copy¶
context(session: KaSession)
fun <T : KaClassType> T.copy(init: KaClassTypeBuilder.() -> Unit): KaClassType
Creates a copy of this KaClassType with modifications applied via the init block.
The builder is pre-populated with the properties of the original type. The init block can then selectively override these properties.
Example:¶
See also¶
context(session: KaSession)
fun KaUsualClassType.copy(init: KaClassTypeBuilder.() -> Unit): KaUsualClassType
Creates a copy of this KaUsualClassType with modifications applied via the init block.
The builder is pre-populated with the properties of the original type. The init block can then selectively override these properties.
Example:¶
See also¶
context(session: KaSession)
fun KaFunctionType.copy(init: KaFunctionTypeBuilder.() -> Unit): KaFunctionType
Creates a copy of this KaFunctionType with modifications applied via the init block.
The builder is pre-populated with the properties of the original type. The init block can then selectively override these properties.
Example:¶
See also¶
context(session: KaSession)
fun KaTypeParameterType.copy(init: KaTypeParameterTypeBuilder.() -> Unit): KaTypeParameterType
Creates a copy of this KaTypeParameterType with modifications applied via the init block.
The builder is pre-populated with the properties of the original type. The init block can then selectively override these properties.