problemDecl

fun LanguageFrontend<*, *>.problemDecl(description: String, type: ProblemNode.ProblemType = ProblemNode.ProblemType.TRANSLATION, init: ProblemDeclaration.() -> Unit? = null): ProblemDeclaration

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