leo/tests/expectations/parser/statement/block.out
2022-08-09 19:53:17 -07:00

88 lines
1.9 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
span:
lo: 2
hi: 12
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
span:
lo: 4
hi: 14
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
span:
lo: 9
hi: 19
span:
lo: 7
hi: 22
otherwise: ~
span:
lo: 2
hi: 22
span:
lo: 0
hi: 24