Closed
Description
Scenario
We use the KotlinAnnotationSpecBuilder to create an annotation we then add to a type, function, ...
Current Behaviour
When the annotation requires members (@Foo(name="bar")
we add those using addMember
. However, every member added this way internally is treated as a new codeblock, resulting in multi-line annotations in generated code.
Wanted Behaviour
Add all members as one code block, so the effective annotation is a one liner.
Possible Workarounds
Manually collect members before adding them as a single codeblock to the annotation.