Kwasm.validation.type
package kwasm.validation.type
Classes
Name | Description |
---|---|
object FunctionTypeValidator
|
Validator for a FunctionType node. From the docs: Function types may not specify more than one result.
|
object GlobalTypeValidator
|
Validator of GlobalType nodes. From the docs:
|
class LimitsValidator
|
Validator of Limits nodes. From the docs: Limits must have meaningful bounds that are within a given range.
|
object MemoryTypeValidator
|
Validator of MemoryType nodes. From the docs:
|
object TableTypeValidator
|
Validator for TableType nodes. From the docs:
|
Methods
validate
fun FunctionType.validate(context: ValidationContext): ValidationContext
Receiver
Name | Description |
---|---|
FunctionType
|
Parameters
Name | Description |
---|---|
context: ValidationContext
|
ReturnValue
Name | Description |
---|---|
ValidationContext
|
validate
fun GlobalType.validate(context: ValidationContext): ValidationContext
Validates a GlobalType node.
Receiver
Name | Description |
---|---|
GlobalType
|
Parameters
Name | Description |
---|---|
context: ValidationContext
|
ReturnValue
Name | Description |
---|---|
ValidationContext
|
validate
fun Limits.validate(range: Long, context: ValidationContext): ValidationContext
Validates a Limits node.
Receiver
Name | Description |
---|---|
Limits
|
Parameters
Name | Description |
---|---|
range: Long
|
|
context: ValidationContext
|
ReturnValue
Name | Description |
---|---|
ValidationContext
|
validate
fun MemoryType.validate(context: ValidationContext): ValidationContext
Validates a MemoryType node.
Receiver
Name | Description |
---|---|
MemoryType
|
Parameters
Name | Description |
---|---|
context: ValidationContext
|
ReturnValue
Name | Description |
---|---|
ValidationContext
|
validate
fun TableType.validate(context: ValidationContext): ValidationContext
Validates a TableType node.
Receiver
Name | Description |
---|---|
TableType
|
Parameters
Name | Description |
---|---|
context: ValidationContext
|
ReturnValue
Name | Description |
---|---|
ValidationContext
|
Validates a FunctionType node.