contextParameter

open fun contextParameter(name: String, type: TypeName): T
@DelicateKotlinPoetApi(message = "Java reflection APIs don't give complete information on Kotlin types. Consider using the kotlinpoet-metadata APIs instead.")
open fun contextParameter(name: String, type: Type): T
open fun contextParameter(name: String, type: KClass<*>): T

Adds a context parameter with the given name and type to this type's list of context parameters.


open fun contextParameter(type: TypeName): T

Adds a context parameter with the name "_" and type to this type's list of context parameters.


open fun contextParameter(contextParameter: ContextParameter): T

Adds the given ContextParameter to this type's list of context parameters.