leo/tests/parser/expression/ternary.leo.out

73 lines
3.9 KiB
Plaintext
Raw Normal View History

2021-03-30 01:45:10 +03:00
---
ns: ParseExpression
expectation: Pass
outputs:
- Ternary:
condition:
2021-04-06 16:57:46 +03:00
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"ternary.leo\\\",\\\"content\\\":\\\"x ? y : z\\\"}\"}"
2021-03-30 01:45:10 +03:00
if_true:
2021-04-06 16:57:46 +03:00
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"ternary.leo\\\",\\\"content\\\":\\\"x ? y : z\\\"}\"}"
2021-03-30 01:45:10 +03:00
if_false:
2021-04-06 16:57:46 +03:00
Identifier: "{\"name\":\"z\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":9,\\\"col_stop\\\":10,\\\"path\\\":\\\"ternary.leo\\\",\\\"content\\\":\\\"x ? y : z\\\"}\"}"
2021-03-30 01:45:10 +03:00
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 10
2021-04-06 16:57:46 +03:00
path: ternary.leo
2021-03-30 01:45:10 +03:00
content: "x ? y : z"
- Ternary:
condition:
2021-04-06 16:57:46 +03:00
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"ternary.leo\\\",\\\"content\\\":\\\"x ? a ? b : c : z\\\"}\"}"
2021-03-30 01:45:10 +03:00
if_true:
Ternary:
condition:
2021-04-06 16:57:46 +03:00
Identifier: "{\"name\":\"a\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"ternary.leo\\\",\\\"content\\\":\\\"x ? a ? b : c : z\\\"}\"}"
2021-03-30 01:45:10 +03:00
if_true:
2021-04-06 16:57:46 +03:00
Identifier: "{\"name\":\"b\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":9,\\\"col_stop\\\":10,\\\"path\\\":\\\"ternary.leo\\\",\\\"content\\\":\\\"x ? a ? b : c : z\\\"}\"}"
2021-03-30 01:45:10 +03:00
if_false:
2021-04-06 16:57:46 +03:00
Identifier: "{\"name\":\"c\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":13,\\\"col_stop\\\":14,\\\"path\\\":\\\"ternary.leo\\\",\\\"content\\\":\\\"x ? a ? b : c : z\\\"}\"}"
2021-03-30 01:45:10 +03:00
span:
line_start: 1
line_stop: 1
col_start: 5
col_stop: 14
2021-04-06 16:57:46 +03:00
path: ternary.leo
2021-03-30 01:45:10 +03:00
content: "x ? a ? b : c : z"
if_false:
2021-04-06 16:57:46 +03:00
Identifier: "{\"name\":\"z\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":17,\\\"col_stop\\\":18,\\\"path\\\":\\\"ternary.leo\\\",\\\"content\\\":\\\"x ? a ? b : c : z\\\"}\"}"
2021-03-30 01:45:10 +03:00
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 18
2021-04-06 16:57:46 +03:00
path: ternary.leo
2021-03-30 01:45:10 +03:00
content: "x ? a ? b : c : z"
- Ternary:
condition:
2021-04-06 16:57:46 +03:00
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"ternary.leo\\\",\\\"content\\\":\\\"x ? y : a ? b : c\\\"}\"}"
2021-03-30 01:45:10 +03:00
if_true:
2021-04-06 16:57:46 +03:00
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"ternary.leo\\\",\\\"content\\\":\\\"x ? y : a ? b : c\\\"}\"}"
2021-03-30 01:45:10 +03:00
if_false:
Ternary:
condition:
2021-04-06 16:57:46 +03:00
Identifier: "{\"name\":\"a\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":9,\\\"col_stop\\\":10,\\\"path\\\":\\\"ternary.leo\\\",\\\"content\\\":\\\"x ? y : a ? b : c\\\"}\"}"
2021-03-30 01:45:10 +03:00
if_true:
2021-04-06 16:57:46 +03:00
Identifier: "{\"name\":\"b\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":13,\\\"col_stop\\\":14,\\\"path\\\":\\\"ternary.leo\\\",\\\"content\\\":\\\"x ? y : a ? b : c\\\"}\"}"
2021-03-30 01:45:10 +03:00
if_false:
2021-04-06 16:57:46 +03:00
Identifier: "{\"name\":\"c\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":17,\\\"col_stop\\\":18,\\\"path\\\":\\\"ternary.leo\\\",\\\"content\\\":\\\"x ? y : a ? b : c\\\"}\"}"
2021-03-30 01:45:10 +03:00
span:
line_start: 1
line_stop: 1
col_start: 9
col_stop: 18
2021-04-06 16:57:46 +03:00
path: ternary.leo
2021-03-30 01:45:10 +03:00
content: "x ? y : a ? b : c"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 18
2021-04-06 16:57:46 +03:00
path: ternary.leo
2021-03-30 01:45:10 +03:00
content: "x ? y : a ? b : c"