CoercionPlan

sealed interface CoercionPlan

How the generator fills one parameter of a generated dynamic function body.

Inheritors

Types

Link copied to clipboard
data class Unsupported(val reason: String) : CoercionPlan

No plan could be made. The processor turns this into a KSP error.

Link copied to clipboard
data class ViaFactory(val parameterTypeExpression: String, val factoryExpression: String) : CoercionPlan

A parameter converted from a call argument via ValueFactory.

Link copied to clipboard
data class ViaInjection(val parameterTypeExpression: String, val localExpression: String) : CoercionPlan

A parameter supplied from the function call rather than the call site.