digitalsanctum
12/14/2018, 11:31 PMorangy
egorand
12/14/2018, 11:56 PMorangy
egorand
12/15/2018, 12:01 AMorangy
egorand
12/15/2018, 12:39 AMFunSpec
has a kdoc: CodeBuilder
property, you can either set it, or modify it if it's mutable, but you can't expose APIs such as addKdoc(format: String, vararg args: Any?)
jdemeulenaere
12/15/2018, 2:34 PMegorand
12/15/2018, 2:55 PMjmfayard
12/15/2018, 11:43 PMorangy
Classic DSLs pretty much confine you to the property definitionsyou can have a
kdoc { … }
or whatever signature you want in the DSL. Basically it can look something like this:
type {
primaryConstructor {
kdoc("Creates an instance")
}
property<String>("foo", "initExpression()")
}