leo/tests/parser/statement/iteration.leo.out
2021-04-12 13:15:40 -07:00

204 lines
6.0 KiB
Plaintext

---
namespace: ParseStatement
expectation: Pass
outputs:
- Iteration:
variable: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"iteration.leo\\\",\\\"content\\\":\\\"for x in 0..7 {}\\\"}\"}"
start:
Value:
Implicit:
- "0"
- line_start: 1
line_stop: 1
col_start: 10
col_stop: 11
path: iteration.leo
content: "for x in 0..7 {}"
stop:
Value:
Implicit:
- "7"
- line_start: 1
line_stop: 1
col_start: 13
col_stop: 14
path: iteration.leo
content: "for x in 0..7 {}"
block:
statements: []
span:
line_start: 1
line_stop: 1
col_start: 15
col_stop: 17
path: iteration.leo
content: "for x in 0..7 {}"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 17
path: iteration.leo
content: "for x in 0..7 {}"
- Iteration:
variable: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"iteration.leo\\\",\\\"content\\\":\\\"for x in 0..7 {\\\"}\"}"
start:
Value:
Implicit:
- "0"
- line_start: 1
line_stop: 1
col_start: 10
col_stop: 11
path: iteration.leo
content: "for x in 0..7 {"
stop:
Value:
Implicit:
- "7"
- line_start: 1
line_stop: 1
col_start: 13
col_stop: 14
path: iteration.leo
content: "for x in 0..7 {"
block:
statements:
- Return:
expression:
TupleInit:
elements: []
span:
line_start: 2
line_stop: 2
col_start: 8
col_stop: 10
path: iteration.leo
content: return ();
span:
line_start: 2
line_stop: 2
col_start: 1
col_stop: 10
path: iteration.leo
content: return ();
span:
line_start: 1
line_stop: 3
col_start: 15
col_stop: 2
path: iteration.leo
content: "for x in 0..7 {\n...\n}"
span:
line_start: 1
line_stop: 3
col_start: 1
col_stop: 2
path: iteration.leo
content: "for x in 0..7 {\n...\n}"
- Iteration:
variable: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"iteration.leo\\\",\\\"content\\\":\\\"for x in 0..99u8 {\\\"}\"}"
start:
Value:
Implicit:
- "0"
- line_start: 1
line_stop: 1
col_start: 10
col_stop: 11
path: iteration.leo
content: "for x in 0..99u8 {"
stop:
Value:
Integer:
- U8
- "99"
- line_start: 1
line_stop: 1
col_start: 13
col_stop: 17
path: iteration.leo
content: "for x in 0..99u8 {"
block:
statements:
- Return:
expression:
TupleInit:
elements: []
span:
line_start: 2
line_stop: 2
col_start: 8
col_stop: 10
path: iteration.leo
content: return ();
span:
line_start: 2
line_stop: 2
col_start: 1
col_stop: 10
path: iteration.leo
content: return ();
span:
line_start: 1
line_stop: 3
col_start: 18
col_stop: 2
path: iteration.leo
content: "for x in 0..99u8 {\n...\n}"
span:
line_start: 1
line_stop: 3
col_start: 1
col_stop: 2
path: iteration.leo
content: "for x in 0..99u8 {\n...\n}"
- Iteration:
variable: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"iteration.leo\\\",\\\"content\\\":\\\"for x in 0..Self {\\\"}\"}"
start:
Value:
Implicit:
- "0"
- line_start: 1
line_stop: 1
col_start: 10
col_stop: 11
path: iteration.leo
content: "for x in 0..Self {"
stop:
Identifier: "{\"name\":\"Self\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":13,\\\"col_stop\\\":17,\\\"path\\\":\\\"iteration.leo\\\",\\\"content\\\":\\\"for x in 0..Self {\\\"}\"}"
block:
statements:
- Return:
expression:
TupleInit:
elements: []
span:
line_start: 2
line_stop: 2
col_start: 8
col_stop: 10
path: iteration.leo
content: return ();
span:
line_start: 2
line_stop: 2
col_start: 1
col_stop: 10
path: iteration.leo
content: return ();
span:
line_start: 1
line_stop: 3
col_start: 18
col_stop: 2
path: iteration.leo
content: "for x in 0..Self {\n...\n}"
span:
line_start: 1
line_stop: 3
col_start: 1
col_stop: 2
path: iteration.leo
content: "for x in 0..Self {\n...\n}"