Wie man Standardargument mit KDOC dokumentieren

stimmen
1

Gibt es eine Syntax Standardargumente mit KDOC zu dokumentieren, oder soll ich es manuell tun?

/**
 * A group of *members*.
 *
 * This class has no useful logic; it's just a documentation example.
 *
 * @property name the name of this group. Default -NoName
 * @constructor Creates an empty group.
 */
class Group(val name: String = NoName) {
    /**
     * Adds a [member] (default - NoMember) to this group.
     * @return the new size of the group.
     */
    fun add(member: String = NoMember): Int { ... }
}
Veröffentlicht am 27/11/2018 um 17:46
quelle vom benutzer
In anderen Sprachen...                            

Cookies help us deliver our services. By using our services, you agree to our use of cookies. Learn more