method
fun LanguageFrontend<*, *>.method(name: CharSequence, returnType: Type = unknownType(), init: MethodDeclaration.() -> Unit? = null): 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.