method

fun LanguageFrontend.method(name: CharSequence, returnType: Type = newUnknownType(), init: MethodDeclaration.() -> Unit): MethodDeclaration

Creates a new MethodDeclaration 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.