function
fun LanguageFrontend<*, *>.function(name: CharSequence, returnType: Type = unknownType(), returnTypes: List<Type>? = null, init: FunctionDeclaration.() -> Unit? = null): FunctionDeclaration
Creates a new FunctionDeclaration in the Fluent Node DSL with the given name and optional returnType. The init block can be used to create further sub-nodes as well as configuring the created node itself.