leo/tests/expectations/parser/statement/block.out
2022-11-12 16:35:54 -08:00

91 lines
2.0 KiB
Plaintext

---
namespace: ParseStatement
expectation: Pass
outputs:
- Block:
statements: []
span:
lo: 0
hi: 2
- Block:
statements:
- Return:
expression:
Literal:
Integer:
- U8
- "0"
- span:
lo: 9
hi: 12
finalize_arguments: ~
span:
lo: 2
hi: 13
span:
lo: 0
hi: 15
- Block:
statements:
- Block:
statements: []
span:
lo: 1
hi: 3
span:
lo: 0
hi: 4
- Block:
statements:
- Block:
statements:
- Return:
expression:
Literal:
Integer:
- U8
- "0"
- span:
lo: 11
hi: 14
finalize_arguments: ~
span:
lo: 4
hi: 15
span:
lo: 2
hi: 17
span:
lo: 0
hi: 19
- Block:
statements:
- Conditional:
condition:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}"
then:
statements:
- Return:
expression:
Literal:
Integer:
- U8
- "0"
- span:
lo: 16
hi: 19
finalize_arguments: ~
span:
lo: 9
hi: 20
span:
lo: 7
hi: 22
otherwise: ~
span:
lo: 2
hi: 22
span:
lo: 0
hi: 24