contributeKotlinSourceFiles

Creates a Kotlin contribution result while handling the common empty-endpoint fast path and logging.

Return

Kotlin contribution wrapper for the generated source files.

Parameters

endpoints

discovered endpoint metadata.

context

generator context used for logging and configuration.

emptyMessage

message logged when no endpoints are available.

generatingMessage

message logged before generating contributions.

sourceFiles

builds the per-source-file contributions for the generator.