kotlinpoet
kotlinpoet copied to clipboard
A Kotlin API for generating .kt source files.
It's really hard to extract code which can operate on two different spec builders. Off the top of my head, I strongly need: - [x] The ability to add annotations...
Why does CodeBlock.builder() not have addComment() method like e.g. FunSpec.builder() ?
Caused by: java.lang.IllegalStateException: Could not parse metadata! This should only happen if you're using Kotlin
When generating the string representation of functions inside a private type, all non-private modifiers (PUBLIC, INTERNAL) are omitted. Fixes #1301
Add API that require to use at least one name in imports in case of variadic syntax usage. The old behaviour have thrown an exception in runtime, but that one...
**Is your feature request related to a problem? Please describe.** On 1.14.2, the following test case (posted in #1604): ```kotlin /** * Referenced code: * * ```Kotlin * package pkg1...
**Is your feature request related to a problem? Please describe.** When generating code that includes constructor invocation, we come across the need to end the control flow with `},`, not...
**Is your feature request related to a problem? Please describe.** Kotlin supports [where clauses](https://kotlinlang.org/docs/generics.html#upper-bounds) which can make complex type-constraints more readable. For example, ```kt class GenericPerson where Self : GenericPerson,...
**Is your feature request related to a problem? Please describe.** Apologies if there is already a way to do this, but I have not had any luck coming up with...