GlobalType

GlobalType

data class GlobalType

Data class encapsulating the value type and mutability of a GlobalType in the spec. From the docs:


globaltype ::=  t:valtype                => const t
‘(’ ‘mut’  t:valtype ‘)’ => var t

Fields

Name Description
val valueType: ValueType
val mutable: Boolean

Constructors

<init>

constructor(valueType: ValueType, mutable: Boolean)

Data class encapsulating the value type and mutability of a GlobalType in the spec. From the docs:


globaltype ::=  t:valtype                => const t
‘(’ ‘mut’  t:valtype ‘)’ => var t

Parameters

Name Description
valueType: ValueType
mutable: Boolean

Extensions

validate

fun GlobalType.validate(context: ValidationContext): ValidationContext

Validates a GlobalType node.

Receiver

Name Description
GlobalType

Parameters

Name Description
context: ValidationContext

ReturnValue

Name Description
ValidationContext