Skip to content
Advertisement

Tag: extension-methods

How to add a KDoc comment for the receiver of a Kotlin extension function (first parameter in Java, `this` in Kotlin)

Consider this non-extension function: When I use this function in kotlin and java, I can see its parameter name: expression. I could also write this same functionality as an extension function: When I write it as an extension function in this manner, the parameter name of the Boolean that it is called on (the this variable within the function, AKA

Advertisement