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

64 lines
2.3 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\\\":\\\"param_tuple.leo\\\",\\\"content\\\":\\\"function x(x: (u32, i32)) {\\\"}\"}":
annotations: []
identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":10,\\\"col_stop\\\":11,\\\"path\\\":\\\"param_tuple.leo\\\",\\\"content\\\":\\\"function x(x: (u32, i32)) {\\\"}\"}"
input:
- Variable:
identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":12,\\\"col_stop\\\":13,\\\"path\\\":\\\"param_tuple.leo\\\",\\\"content\\\":\\\"function x(x: (u32, i32)) {\\\"}\"}"
const_: false
mutable: true
type_:
Tuple:
- IntegerType: U32
- IntegerType: I32
span:
line_start: 3
line_stop: 3
col_start: 12
col_stop: 13
path: param_tuple.leo
content: "function x(x: (u32, i32)) {"
output: ~
block:
statements:
- Return:
expression:
TupleInit:
elements: []
span:
line_start: 4
line_stop: 4
col_start: 12
col_stop: 14
path: param_tuple.leo
content: " return ();"
span:
line_start: 4
line_stop: 4
col_start: 5
col_stop: 14
path: param_tuple.leo
content: " return ();"
span:
line_start: 3
line_stop: 5
col_start: 27
col_stop: 2
path: param_tuple.leo
content: "function x(x: (u32, i32)) {\n...\n}"
span:
line_start: 3
line_stop: 5
col_start: 1
col_stop: 2
path: param_tuple.leo
content: "function x(x: (u32, i32)) {\n...\n}"