switchBody

fun LanguageFrontend<*, *>.switchBody(init: Block.() -> Unit): Block

Creates a new Block in the Fluent Node DSL and sets it to the SwitchStatement.statement of the nearest enclosing SwitchStatement. The init block can be used to create further sub-nodes as well as configuring the created node itself.