WrapperSuffix

@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class WrapperSuffix(val suffix: String)

Names the function suffix a KMapperWrapper generates: @WrapperSuffix("Result") → toXResult(). Required on every wrapper that declares wrap functions.

Retention is BINARY: wrappers usually live in a different module than the mapping that uses them (the built-ins always do), so the consumer's KSP round reads this from the classpath.

Properties

Link copied to clipboard