leo/tests/expectations/parser/statement/block.out
Pranav Gaddamadugu 440cced9d8 Cleanup
2023-08-17 17:49:29 -04:00

106 lines
2.3 KiB
Plaintext

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