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

53 lines
2.3 KiB
Plaintext

---
namespace: Parse
expectation: Pass
outputs:
- name: ""
expected_input: []
imports: []
circuits:
"{\"name\":\"X\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":9,\\\"col_stop\\\":10,\\\"path\\\":\\\"mut_self.leo\\\",\\\"content\\\":\\\"circuit X {\\\"}\"}":
circuit_name: "{\"name\":\"X\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":9,\\\"col_stop\\\":10,\\\"path\\\":\\\"mut_self.leo\\\",\\\"content\\\":\\\"circuit X {\\\"}\"}"
members:
- CircuitFunction:
annotations: []
identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":4,\\\"line_stop\\\":4,\\\"col_start\\\":14,\\\"col_stop\\\":15,\\\"path\\\":\\\"mut_self.leo\\\",\\\"content\\\":\\\" function x(mut self) {\\\"}\"}"
input:
- MutSelfKeyword: "{\"name\":\"mut self\",\"span\":\"{\\\"line_start\\\":4,\\\"line_stop\\\":4,\\\"col_start\\\":16,\\\"col_stop\\\":24,\\\"path\\\":\\\"mut_self.leo\\\",\\\"content\\\":\\\" function x(mut self) {\\\"}\"}"
output: ~
block:
statements:
- Return:
expression:
TupleInit:
elements: []
span:
line_start: 5
line_stop: 5
col_start: 16
col_stop: 18
path: mut_self.leo
content: " return ();"
span:
line_start: 5
line_stop: 5
col_start: 9
col_stop: 18
path: mut_self.leo
content: " return ();"
span:
line_start: 4
line_stop: 6
col_start: 26
col_stop: 6
path: mut_self.leo
content: " function x(mut self) {\n...\n }"
span:
line_start: 4
line_stop: 6
col_start: 5
col_stop: 6
path: mut_self.leo
content: " function x(mut self) {\n...\n }"
functions: {}