indented

inline fun indented(block: CodeWriter.() -> Unit): CodeWriter(source)

Increases the indentation level by one and executes block, then decreases it back.

Return

This CodeWriter for chaining.

Parameters

block

The code to execute at the increased indent level.