switchStmt
fun LanguageFrontend<*, *>.switchStmt(selector: Expression, needsScope: Boolean = true, init: SwitchStatement.() -> Unit): SwitchStatement
Creates a new SwitchStatement in the Fluent Node DSL and adds it to the StatementHolder.statements of the nearest enclosing StatementHolder. The init block can be used to create further sub-nodes as well as configuring the created node itself.