kotlinx.html icon indicating copy to clipboard operation
kotlinx.html copied to clipboard

Add contracts to generated code

Open jschneider opened this issue 2 years ago • 0 comments
trafficstars

The block in this method is called exactly once: fun Node.append(block: TagConsumer<HTMLElement>.() -> Unit): List<HTMLElement>

It would be helpful to generate the contract{} for this method. This allowed assignments of created elements and simplifies the users code in some cases.

jschneider avatar Apr 24 '23 13:04 jschneider