8000 AnnotationSpec: Collect members and add one single codeBlock · Issue #50 · toolisticon/kotlin-code-generation · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
AnnotationSpec: Collect members and add one single codeBlock #50
Closed
@jangalinski

Description

@jangalinski

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0