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

50 lines
1.6 KiB
Plaintext

---
namespace: Parse
expectation: Pass
outputs:
- name: ""
expected_input: []
imports: []
circuits: {}
functions:
"{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":10,\\\"col_stop\\\":11,\\\"path\\\":\\\"return.leo\\\",\\\"content\\\":\\\"function x() -> u32 {\\\"}\"}":
annotations: []
identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":10,\\\"col_stop\\\":11,\\\"path\\\":\\\"return.leo\\\",\\\"content\\\":\\\"function x() -> u32 {\\\"}\"}"
input: []
output:
IntegerType: U32
block:
statements:
- Return:
expression:
TupleInit:
elements: []
span:
line_start: 4
line_stop: 4
col_start: 12
col_stop: 14
path: return.leo
content: " return ();"
span:
line_start: 4
line_stop: 4
col_start: 5
col_stop: 14
path: return.leo
content: " return ();"
span:
line_start: 3
line_stop: 5
col_start: 21
col_stop: 2
path: return.leo
content: "function x() -> u32 {\n...\n}"
span:
line_start: 3
line_stop: 5
col_start: 1
col_stop: 2
path: return.leo
content: "function x() -> u32 {\n...\n}"