kotlinx.html
kotlinx.html copied to clipboard
Add contracts to generated code
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.