Variant

data class Variant(val name: String, val members: List<Decl.Variant.Member>, val isEnum: Boolean = false) : Decl

Constructors

Link copied to clipboard
constructor(name: String, members: List<Decl.Variant.Member>, isEnum: Boolean = false)

Types

Link copied to clipboard
data class Member(val name: String, val tag: Int, val payload: List<Decl.Record.Field> = emptyList())

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val name: String

Functions

Link copied to clipboard
fun Decl.blame(known: Set<String>, declared: Set<String>): String?

Returns the name of the first declaration that blocks the creation of a finite value.