Pattern

@Serializable
data class Pattern(val elements: List<PatternElement>, val type: String = "Pattern")(source)

A pattern - the content of a message or term value.

Patterns contain a list of PatternElements which can be either text or placeables (expressions in curly braces).

Constructors

Link copied to clipboard
constructor(elements: List<PatternElement>, type: String = "Pattern")

Properties

Link copied to clipboard

The list of pattern elements (text and placeables)

Link copied to clipboard