A model representing a return statement in ASL.
An example rendering would be:
returnreturn 42| Properties | Type | Description |
|---|---|---|
| _meta | Meta |
See
Meta
for more information.
|
| _type |
|
|
| val◊ |
oneOf [
null
]
|
oneOf BinaryOp
The value to be returned in the statement.
oneOf null
|
|
||
|
||
{
"_type": "AST.Return",
"val": null
}
{
"_type": "AST.Return",
"val": {
"_type": "AST.Integer",
"value": 42
}
}
{
"info": [
"A model representing a return statement in ASL.",
"An example rendering would be:",
[
" - `return`",
" - `return 42`"
]
],
"examples": [
{
"_type": "AST.Return",
"val": null
},
{
"_type": "AST.Return",
"val": {
"_type": "AST.Integer",
"value": 42
}
}
],
"additionalProperties": false,
"properties": {
"_meta": {
"$ref": "../Meta.json"
},
"_type": {
"enum": [
"AST.Return"
]
},
"val": {
"oneOf": [
{
"info": [
"The value to be returned in the statement."
],
"$ref": "BinaryOp.json#/definitions/expression"
},
{
"type": "null"
}
]
}
},
"required": [
"val"
],
"type": "object",
"title": "Return",
"$schema": "http://json-schema.org/draft-04/schema#"
}