StructInstance

class StructInstance(val name: Identifier, val fields: Map<Identifier, Expression>) : Expression

Represents the instantiation of Struct.

All entries of fields must have a corresponding StructField in the Struct's definition. All StructFields without default expressions must have an entry in fields

Constructors

Link copied to clipboard
fun StructInstance(name: Identifier, fields: Map<Identifier, Expression>)

Properties

Link copied to clipboard
val fields: Map<Identifier, Expression>

a mapping of fields to set on the struct instance.

Link copied to clipboard
val name: Identifier

the identifier at which the Struct that is being instantiated is accessible in the current scope.