A model representing a type in ASL.
An example rendering would be:
bits(32)
integer
Properties | Type | Description |
---|---|---|
_meta | Meta |
See
Meta
for more information.
|
_type |
|
|
name◊ |
oneOf [
]
|
The type definition. oneOf IdentifieroneOf Function |
|
||
|
{
"_type": "AST.Type",
"name": {
"_type": "AST.Function",
"name": "bits",
"arguments": [
{
"_type": "AST.Integer",
"value": 32
}
]
}
}
{
"_type": "AST.Type",
"name": {
"_type": "AST.Identifier",
"value": "integer"
}
}
{
"info": [
"A model representing a type in ASL.",
"An example rendering would be: ",
[
" - `bits(32)`",
" - `integer`"
]
],
"examples": [
{
"_type": "AST.Type",
"name": {
"_type": "AST.Function",
"name": "bits",
"arguments": [
{
"_type": "AST.Integer",
"value": 32
}
]
}
},
{
"_type": "AST.Type",
"name": {
"_type": "AST.Identifier",
"value": "integer"
}
}
],
"oneOf": [
{
"additionalProperties": false,
"properties": {
"_meta": {
"$ref": "../Meta.json"
},
"_type": {
"enum": [
"AST.Type"
]
},
"name": {
"info": [
"The type definition."
],
"oneOf": [
{
"$ref": "Identifier.json"
},
{
"$ref": "Function.json"
}
]
}
},
"required": [
"name"
],
"type": "object"
},
{
"type": "string"
}
],
"title": "Type",
"$schema": "http://json-schema.org/draft-04/schema#"
}