variable
fun LanguageFrontend<*, *>.variable(name: String, type: Type = unknownType(), init: VariableDeclaration.() -> Unit? = null): VariableDeclaration
Creates a new VariableDeclaration in the Fluent Node DSL and adds it to the DeclarationStatement.declarations of the nearest enclosing DeclarationStatement. The init block can be used to create further sub-nodes as well as configuring the created node itself.
Configures the ForEachStatement.variable in the Fluent Node DSL of the nearest enclosing ForEachStatement. The init block can be used to create further sub-nodes as well as configuring the created node itself.