leo/tests/expectations/parser/statement/conditional.out

150 lines
3.4 KiB
Plaintext
Raw Normal View History

2021-03-30 01:45:10 +03:00
---
2021-04-07 20:01:24 +03:00
namespace: ParseStatement
2021-03-30 01:45:10 +03:00
expectation: Pass
outputs:
- Conditional:
condition:
2022-05-03 21:48:48 +03:00
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":3,\\\"hi\\\":4}\"}"
then:
2021-03-30 01:45:10 +03:00
statements:
- Return:
expression:
2022-06-12 07:10:08 +03:00
Literal:
2022-08-10 02:14:05 +03:00
Integer:
- U8
2022-03-28 20:35:36 +03:00
- "0"
- span:
2022-05-03 21:48:48 +03:00
lo: 14
hi: 17
2022-11-13 03:35:54 +03:00
finalize_arguments: ~
2021-03-30 01:45:10 +03:00
span:
2022-05-03 21:48:48 +03:00
lo: 7
2022-11-13 03:35:54 +03:00
hi: 18
2021-03-30 01:45:10 +03:00
span:
2022-05-03 21:48:48 +03:00
lo: 5
hi: 20
otherwise: ~
2021-03-30 01:45:10 +03:00
span:
2022-05-03 21:48:48 +03:00
lo: 0
hi: 20
2021-03-30 01:45:10 +03:00
- Conditional:
condition:
2022-05-03 21:48:48 +03:00
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}"
then:
2021-03-30 01:45:10 +03:00
statements:
- Return:
expression:
2022-06-12 07:10:08 +03:00
Literal:
2022-08-10 02:14:05 +03:00
Integer:
- U8
2022-03-28 20:35:36 +03:00
- "0"
- span:
2022-05-03 21:48:48 +03:00
lo: 16
hi: 19
2022-11-13 03:35:54 +03:00
finalize_arguments: ~
2021-03-30 01:45:10 +03:00
span:
2022-05-03 21:48:48 +03:00
lo: 9
2022-11-13 03:35:54 +03:00
hi: 20
2021-03-30 01:45:10 +03:00
span:
2022-05-03 21:48:48 +03:00
lo: 7
hi: 22
otherwise: ~
2021-03-30 01:45:10 +03:00
span:
2022-05-03 21:48:48 +03:00
lo: 0
hi: 22
2021-03-30 01:45:10 +03:00
- Conditional:
condition:
2022-05-03 21:48:48 +03:00
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}"
then:
2021-03-30 01:45:10 +03:00
statements: []
span:
2022-05-03 21:48:48 +03:00
lo: 7
hi: 9
otherwise:
2021-07-09 22:15:29 +03:00
Block:
statements: []
span:
2022-05-03 21:48:48 +03:00
lo: 15
hi: 17
2021-03-30 01:45:10 +03:00
span:
2022-05-03 21:48:48 +03:00
lo: 0
hi: 17
2021-03-30 01:45:10 +03:00
- Conditional:
condition:
Binary:
left:
2022-05-03 21:48:48 +03:00
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":3,\\\"hi\\\":4}\"}"
2021-03-30 01:45:10 +03:00
right:
2022-05-03 21:48:48 +03:00
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}"
2021-03-30 01:45:10 +03:00
op: Add
span:
2022-05-03 21:48:48 +03:00
lo: 3
hi: 6
then:
2021-03-30 01:45:10 +03:00
statements: []
span:
2022-05-03 21:48:48 +03:00
lo: 7
hi: 9
otherwise:
2021-07-09 22:15:29 +03:00
Conditional:
condition:
Binary:
left:
2022-05-03 21:48:48 +03:00
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":18,\\\"hi\\\":19}\"}"
2021-07-09 22:15:29 +03:00
right:
2022-05-03 21:48:48 +03:00
Identifier: "{\"name\":\"z\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}"
2021-07-09 22:15:29 +03:00
op: Add
span:
2022-05-03 21:48:48 +03:00
lo: 18
hi: 21
then:
2021-07-09 22:15:29 +03:00
statements: []
span:
2022-05-03 21:48:48 +03:00
lo: 22
hi: 24
otherwise:
2021-07-09 22:15:29 +03:00
Block:
statements: []
span:
2022-05-03 21:48:48 +03:00
lo: 30
hi: 32
2021-07-09 22:15:29 +03:00
span:
2022-05-03 21:48:48 +03:00
lo: 15
hi: 32
2021-03-30 01:45:10 +03:00
span:
2022-05-03 21:48:48 +03:00
lo: 0
hi: 32
2021-03-30 01:45:10 +03:00
- Conditional:
condition:
Binary:
left:
2022-05-03 21:48:48 +03:00
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":3,\\\"hi\\\":4}\"}"
2021-03-30 01:45:10 +03:00
right:
2022-05-03 21:48:48 +03:00
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}"
2021-03-30 01:45:10 +03:00
op: Add
span:
2022-05-03 21:48:48 +03:00
lo: 3
hi: 6
then:
2021-03-30 01:45:10 +03:00
statements:
- Return:
expression:
2022-06-12 07:10:08 +03:00
Literal:
2022-08-10 02:14:05 +03:00
Integer:
- U8
2022-03-28 20:35:36 +03:00
- "0"
- span:
2022-05-17 15:41:30 +03:00
lo: 16
hi: 19
2022-11-13 03:35:54 +03:00
finalize_arguments: ~
2021-03-30 01:45:10 +03:00
span:
2022-05-17 15:41:30 +03:00
lo: 9
2022-11-13 03:35:54 +03:00
hi: 20
2021-03-30 01:45:10 +03:00
span:
2022-05-03 21:48:48 +03:00
lo: 7
2022-05-17 15:41:30 +03:00
hi: 22
otherwise: ~
2021-03-30 01:45:10 +03:00
span:
2022-05-03 21:48:48 +03:00
lo: 0
2022-05-17 15:41:30 +03:00
hi: 22