FunctionNameGenerator

class FunctionNameGenerator(logger: KSPLogger)

Generates function names for mapping operations.

Constructors

Link copied to clipboard
constructor(logger: KSPLogger)

Functions

Link copied to clipboard
fun generateFileName(sourceClass: KSClassDeclaration): String

Generate file name: "{SourceClass}Mappers"

Link copied to clipboard
fun generateMapperFunctionName(targetClass: KSClassDeclaration): String

Generate mapper function name: "to{TargetName}Result" — the Result suffix is part of the boundary contract (fun Source.toXResult(): Result<X>); nested-mapper call sites (TypeMatcher's strategy construction) follow the same naming atomically.