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 the plain core mapper name: "to{TargetName}" (fun Source.toX(): X). Nested-mapper call sites (TypeMatcher's strategy construction) follow the same naming atomically; return wrappers append their @WrapperSuffix to it (see generateWrapperFunctionName).

Link copied to clipboard
fun generateWrapperFunctionName(targetClass: KSClassDeclaration, suffix: String): String

Generate a wrapper function name: "to{TargetName}{suffix}", e.g. toXResult.